Interface AttributeValue.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AttributeValue.Builder,AttributeValue>,SdkBuilder<AttributeValue.Builder,AttributeValue>,SdkPojo
- Enclosing class:
- AttributeValue
@Mutable @NotThreadSafe public static interface AttributeValue.Builder extends SdkPojo, CopyableBuilder<AttributeValue.Builder,AttributeValue>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttributeValue.Builderb(SdkBytes b)An attribute of type Binary.AttributeValue.Builderbool(Boolean bool)An attribute of type Boolean.AttributeValue.Builderbs(Collection<SdkBytes> bs)An attribute of type Binary Set.AttributeValue.Builderbs(SdkBytes... bs)An attribute of type Binary Set.AttributeValue.Builderl(Collection<AttributeValue> l)An attribute of type List.AttributeValue.Builderl(Consumer<AttributeValue.Builder>... l)An attribute of type List.AttributeValue.Builderl(AttributeValue... l)An attribute of type List.AttributeValue.Builderm(Map<String,AttributeValue> m)An attribute of type Map.AttributeValue.Buildern(String n)An attribute of type Number.AttributeValue.Builderns(String... ns)An attribute of type Number Set.AttributeValue.Builderns(Collection<String> ns)An attribute of type Number Set.AttributeValue.Buildernul(Boolean nul)An attribute of type Null.AttributeValue.Builders(String s)An attribute of type String.AttributeValue.Builderss(String... ss)An attribute of type String Set.AttributeValue.Builderss(Collection<String> ss)An attribute of type String Set.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
s
AttributeValue.Builder s(String s)
An attribute of type String. For example:
"S": "Hello"- Parameters:
s- An attribute of type String. For example:"S": "Hello"- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
n
AttributeValue.Builder n(String n)
An attribute of type Number. For example:
"N": "123.45"Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
- Parameters:
n- An attribute of type Number. For example:"N": "123.45"Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
b
AttributeValue.Builder b(SdkBytes b)
An attribute of type Binary. For example:
"B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk"- Parameters:
b- An attribute of type Binary. For example:"B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk"- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ss
AttributeValue.Builder ss(Collection<String> ss)
An attribute of type String Set. For example:
"SS": ["Giraffe", "Hippo" ,"Zebra"]- Parameters:
ss- An attribute of type String Set. For example:"SS": ["Giraffe", "Hippo" ,"Zebra"]- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ss
AttributeValue.Builder ss(String... ss)
An attribute of type String Set. For example:
"SS": ["Giraffe", "Hippo" ,"Zebra"]- Parameters:
ss- An attribute of type String Set. For example:"SS": ["Giraffe", "Hippo" ,"Zebra"]- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ns
AttributeValue.Builder ns(Collection<String> ns)
An attribute of type Number Set. For example:
"NS": ["42.2", "-19", "7.5", "3.14"]Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
- Parameters:
ns- An attribute of type Number Set. For example:"NS": ["42.2", "-19", "7.5", "3.14"]Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ns
AttributeValue.Builder ns(String... ns)
An attribute of type Number Set. For example:
"NS": ["42.2", "-19", "7.5", "3.14"]Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
- Parameters:
ns- An attribute of type Number Set. For example:"NS": ["42.2", "-19", "7.5", "3.14"]Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bs
AttributeValue.Builder bs(Collection<SdkBytes> bs)
An attribute of type Binary Set. For example:
"BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]- Parameters:
bs- An attribute of type Binary Set. For example:"BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bs
AttributeValue.Builder bs(SdkBytes... bs)
An attribute of type Binary Set. For example:
"BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]- Parameters:
bs- An attribute of type Binary Set. For example:"BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
m
AttributeValue.Builder m(Map<String,AttributeValue> m)
An attribute of type Map. For example:
"M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}}- Parameters:
m- An attribute of type Map. For example:"M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}}- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
l
AttributeValue.Builder l(Collection<AttributeValue> l)
An attribute of type List. For example:
"L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N": "3.14159"}]- Parameters:
l- An attribute of type List. For example:"L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N": "3.14159"}]- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
l
AttributeValue.Builder l(AttributeValue... l)
An attribute of type List. For example:
"L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N": "3.14159"}]- Parameters:
l- An attribute of type List. For example:"L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N": "3.14159"}]- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
l
AttributeValue.Builder l(Consumer<AttributeValue.Builder>... l)
An attribute of type List. For example:
This is a convenience method that creates an instance of the"L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N": "3.14159"}]AttributeValue.Builderavoiding the need to create one manually viaAttributeValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#l(List.) - Parameters:
l- a consumer that will call methods onAttributeValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#l(java.util.Collection)
-
bool
AttributeValue.Builder bool(Boolean bool)
An attribute of type Boolean. For example:
"BOOL": true- Parameters:
bool- An attribute of type Boolean. For example:"BOOL": true- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nul
AttributeValue.Builder nul(Boolean nul)
An attribute of type Null. For example:
"NULL": true- Parameters:
nul- An attribute of type Null. For example:"NULL": true- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-