public static class StaticTableMetadata.Builder extends Object
StaticTableMetadata| Modifier and Type | Method and Description |
|---|---|
StaticTableMetadata.Builder |
addCustomMetadataObject(String key,
Object object)
Adds a single custom object to the metadata, keyed by a string.
|
StaticTableMetadata.Builder |
addIndexPartitionKey(String indexName,
String attributeName,
AttributeValueType attributeValueType)
Adds information about a partition key associated with a specific index.
|
StaticTableMetadata.Builder |
addIndexSortKey(String indexName,
String attributeName,
AttributeValueType attributeValueType)
Adds information about a sort key associated with a specific index.
|
StaticTableMetadata |
build()
Builds an immutable instance of
StaticTableMetadata from the values supplied to the builder. |
StaticTableMetadata.Builder |
markAttributeAsKey(String attributeName,
AttributeValueType attributeValueType)
Declares a 'key-like' attribute that is not an actual DynamoDB key.
|
public StaticTableMetadata build()
StaticTableMetadata from the values supplied to the builder.public StaticTableMetadata.Builder addCustomMetadataObject(String key, Object object)
key - a string key that will be used to retrieve the custom metadataobject - an object that will be stored in the custom metadata mapIllegalArgumentException - if the custom metadata map already contains an entry with the same keypublic StaticTableMetadata.Builder addIndexPartitionKey(String indexName, String attributeName, AttributeValueType attributeValueType)
indexName - the name of the index to associate the partition key withattributeName - the name of the attribute that represents the partition keyattributeValueType - the AttributeValueType of the partition keyIllegalArgumentException - if a partition key has already been defined for this indexpublic StaticTableMetadata.Builder addIndexSortKey(String indexName, String attributeName, AttributeValueType attributeValueType)
indexName - the name of the index to associate the sort key withattributeName - the name of the attribute that represents the sort keyattributeValueType - the AttributeValueType of the sort keyIllegalArgumentException - if a sort key has already been defined for this indexpublic StaticTableMetadata.Builder markAttributeAsKey(String attributeName, AttributeValueType attributeValueType)
attributeName - the name of the attribute to mark as a pseudo-keyattributeValueType - the AttributeValueType of the pseudo-keyCopyright © 2020. All rights reserved.