Class Key.Builder
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.Key.Builder
- Enclosing class:
Key
Builder for
Key
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Construct aKey
from this builder.partitionValue
(Number partitionValue) Numeric value to be used for the partition key.partitionValue
(String partitionValue) String value to be used for the partition key.partitionValue
(SdkBytes partitionValue) Binary value to be used for the partition key.partitionValue
(AttributeValue partitionValue) Value to be used for the partition keyNumeric value to be used for the sort key.String value to be used for the sort key.Binary value to be used for the sort key.sortValue
(AttributeValue sortValue) Value to be used for the sort key
-
Method Details
-
partitionValue
Value to be used for the partition key- Parameters:
partitionValue
- partition key value
-
partitionValue
String value to be used for the partition key. The string will be converted into an AttributeValue of type S.- Parameters:
partitionValue
- partition key value
-
partitionValue
Numeric value to be used for the partition key. The number will be converted into an AttributeValue of type N.- Parameters:
partitionValue
- partition key value
-
partitionValue
Binary value to be used for the partition key. The input will be converted into an AttributeValue of type B.- Parameters:
partitionValue
- the bytes to be used for the binary key value.
-
sortValue
Value to be used for the sort key- Parameters:
sortValue
- sort key value
-
sortValue
String value to be used for the sort key. The string will be converted into an AttributeValue of type S.- Parameters:
sortValue
- sort key value
-
sortValue
Numeric value to be used for the sort key. The number will be converted into an AttributeValue of type N.- Parameters:
sortValue
- sort key value
-
sortValue
Binary value to be used for the sort key. The input will be converted into an AttributeValue of type B.- Parameters:
sortValue
- the bytes to be used for the binary key value.
-
build
Construct aKey
from this builder.
-