public static interface AttributeValue.Builder extends SdkPojo, CopyableBuilder<AttributeValue.Builder,AttributeValue>
Modifier and Type | Method and Description |
---|---|
AttributeValue.Builder |
b(SdkBytes b)
An attribute of type Binary.
|
AttributeValue.Builder |
bool(Boolean bool)
An attribute of type Boolean.
|
AttributeValue.Builder |
bs(Collection<SdkBytes> bs)
An attribute of type Binary Set.
|
AttributeValue.Builder |
bs(SdkBytes... bs)
An attribute of type Binary Set.
|
AttributeValue.Builder |
l(AttributeValue... l)
An attribute of type List.
|
AttributeValue.Builder |
l(Collection<AttributeValue> l)
An attribute of type List.
|
AttributeValue.Builder |
l(Consumer<AttributeValue.Builder>... l)
An attribute of type List.
|
AttributeValue.Builder |
m(Map<String,AttributeValue> m)
An attribute of type Map.
|
AttributeValue.Builder |
n(String n)
An attribute of type Number.
|
AttributeValue.Builder |
ns(Collection<String> ns)
An attribute of type Number Set.
|
AttributeValue.Builder |
ns(String... ns)
An attribute of type Number Set.
|
AttributeValue.Builder |
nul(Boolean nul)
An attribute of type Null.
|
AttributeValue.Builder |
s(String s)
An attribute of type String.
|
AttributeValue.Builder |
ss(Collection<String> ss)
An attribute of type String Set.
|
AttributeValue.Builder |
ss(String... ss)
An attribute of type String Set.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
AttributeValue.Builder s(String s)
An attribute of type String. For example:
"S": "Hello"
s
- An attribute of type String. For example:
"S": "Hello"
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.
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.
AttributeValue.Builder b(SdkBytes b)
An attribute of type Binary. For example:
"B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk"
b
- An attribute of type Binary. For example:
"B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk"
AttributeValue.Builder ss(Collection<String> ss)
An attribute of type String Set. For example:
"SS": ["Giraffe", "Hippo" ,"Zebra"]
ss
- An attribute of type String Set. For example:
"SS": ["Giraffe", "Hippo" ,"Zebra"]
AttributeValue.Builder ss(String... ss)
An attribute of type String Set. For example:
"SS": ["Giraffe", "Hippo" ,"Zebra"]
ss
- An attribute of type String Set. For example:
"SS": ["Giraffe", "Hippo" ,"Zebra"]
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.
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.
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.
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.
AttributeValue.Builder bs(Collection<SdkBytes> bs)
An attribute of type Binary Set. For example:
"BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]
bs
- An attribute of type Binary Set. For example:
"BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]
AttributeValue.Builder bs(SdkBytes... bs)
An attribute of type Binary Set. For example:
"BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]
bs
- An attribute of type Binary Set. For example:
"BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]
AttributeValue.Builder m(Map<String,AttributeValue> m)
An attribute of type Map. For example:
"M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}}
m
- An attribute of type Map. For example:
"M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}}
AttributeValue.Builder l(Collection<AttributeValue> l)
An attribute of type List. For example:
"L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N", "3.14159"}]
l
- An attribute of type List. For example:
"L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N", "3.14159"}]
AttributeValue.Builder l(AttributeValue... l)
An attribute of type List. For example:
"L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N", "3.14159"}]
l
- An attribute of type List. For example:
"L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N", "3.14159"}]
AttributeValue.Builder l(Consumer<AttributeValue.Builder>... l)
An attribute of type List. For example:
"L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N", "3.14159"}]
List.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #l(List)
.l
- a consumer that will call methods on List.Builder
#l(List)
AttributeValue.Builder bool(Boolean bool)
An attribute of type Boolean. For example:
"BOOL": true
bool
- An attribute of type Boolean. For example:
"BOOL": true
AttributeValue.Builder nul(Boolean nul)
An attribute of type Null. For example:
"NULL": true
nul
- An attribute of type Null. For example:
"NULL": true
Copyright © 2021. All rights reserved.