Class DocumentTableSchema.Builder
- java.lang.Object
- 
- software.amazon.awssdk.enhanced.dynamodb.document.DocumentTableSchema.Builder
 
- 
- Enclosing class:
- DocumentTableSchema
 
 @NotThreadSafe public static final class DocumentTableSchema.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentTableSchema.BuilderaddIndexPartitionKey(String indexName, String attributeName, AttributeValueType attributeValueType)Adds information about a partition key associated with a specific index.DocumentTableSchema.BuilderaddIndexSortKey(String indexName, String attributeName, AttributeValueType attributeValueType)Adds information about a sort key associated with a specific index.DocumentTableSchema.BuilderattributeConverterProviders(List<AttributeConverterProvider> attributeConverterProviders)Specifies theAttributeConverterProviders to use with the table schema.DocumentTableSchema.BuilderattributeConverterProviders(AttributeConverterProvider... attributeConverterProviders)Specifies theAttributeConverterProviders to use with the table schema.DocumentTableSchemabuild()Builds aStaticImmutableTableSchemabased on the values this builder has been configured with
 
- 
- 
- 
Method Detail- 
addIndexPartitionKeypublic DocumentTableSchema.Builder addIndexPartitionKey(String indexName, String attributeName, AttributeValueType attributeValueType) Adds information about a partition key associated with a specific index.- Parameters:
- indexName- the name of the index to associate the partition key with
- attributeName- the name of the attribute that represents the partition key
- attributeValueType- the- AttributeValueTypeof the partition key
- Throws:
- IllegalArgumentException- if a partition key has already been defined for this index
 
 - 
addIndexSortKeypublic DocumentTableSchema.Builder addIndexSortKey(String indexName, String attributeName, AttributeValueType attributeValueType) Adds information about a sort key associated with a specific index.- Parameters:
- indexName- the name of the index to associate the sort key with
- attributeName- the name of the attribute that represents the sort key
- attributeValueType- the- AttributeValueTypeof the sort key
- Throws:
- IllegalArgumentException- if a sort key has already been defined for this index
 
 - 
attributeConverterProviderspublic DocumentTableSchema.Builder attributeConverterProviders(AttributeConverterProvider... attributeConverterProviders) Specifies theAttributeConverterProviders to use with the table schema. The list of attribute converter providers must provideAttributeConverters for Custom types. The attribute converter providers will be loaded in the strict order they are supplied here.By default, DefaultAttributeConverterProviderwill be used, and it will provide standard converters for most primitive and common Java types. Configuring this will override the default behavior, so it is recommended to always append `DefaultAttributeConverterProvider` when you configure the custom attribute converter providers.- Parameters:
- attributeConverterProviders- a list of attribute converter providers to use with the table schema
 
 - 
attributeConverterProviderspublic DocumentTableSchema.Builder attributeConverterProviders(List<AttributeConverterProvider> attributeConverterProviders) Specifies theAttributeConverterProviders to use with the table schema. The list of attribute converter providers must provideAttributeConverters for all types used in the schema. The attribute converter providers will be loaded in the strict order they are supplied here.By default, DefaultAttributeConverterProviderwill be used, and it will provide standard converters for most primitive and common Java types. Configuring this will override the default behavior, so it is recommended to always append `DefaultAttributeConverterProvider` when you configure the custom attribute converter providers.- Parameters:
- attributeConverterProviders- a list of attribute converter providers to use with the table schema
 
 - 
buildpublic DocumentTableSchema build() Builds aStaticImmutableTableSchemabased on the values this builder has been configured with
 
- 
 
-