Interface AwsDynamoDbTableLocalSecondaryIndex.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsDynamoDbTableLocalSecondaryIndex.Builder,
,AwsDynamoDbTableLocalSecondaryIndex> SdkBuilder<AwsDynamoDbTableLocalSecondaryIndex.Builder,
,AwsDynamoDbTableLocalSecondaryIndex> SdkPojo
- Enclosing class:
AwsDynamoDbTableLocalSecondaryIndex
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the index.The name of the index.keySchema
(Collection<AwsDynamoDbTableKeySchema> keySchema) The complete key schema for the index.keySchema
(Consumer<AwsDynamoDbTableKeySchema.Builder>... keySchema) The complete key schema for the index.keySchema
(AwsDynamoDbTableKeySchema... keySchema) The complete key schema for the index.projection
(Consumer<AwsDynamoDbTableProjection.Builder> projection) Attributes that are copied from the table into the index.projection
(AwsDynamoDbTableProjection projection) Attributes that are copied from the table into the index.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, sdkFields
-
Method Details
-
indexArn
The ARN of the index.
- Parameters:
indexArn
- The ARN of the index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indexName
The name of the index.
- Parameters:
indexName
- The name of the index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keySchema
AwsDynamoDbTableLocalSecondaryIndex.Builder keySchema(Collection<AwsDynamoDbTableKeySchema> keySchema) The complete key schema for the index.
- Parameters:
keySchema
- The complete key schema for the index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keySchema
The complete key schema for the index.
- Parameters:
keySchema
- The complete key schema for the index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keySchema
AwsDynamoDbTableLocalSecondaryIndex.Builder keySchema(Consumer<AwsDynamoDbTableKeySchema.Builder>... keySchema) The complete key schema for the index.
This is a convenience method that creates an instance of theAwsDynamoDbTableKeySchema.Builder
avoiding the need to create one manually viaAwsDynamoDbTableKeySchema.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tokeySchema(List<AwsDynamoDbTableKeySchema>)
.- Parameters:
keySchema
- a consumer that will call methods onAwsDynamoDbTableKeySchema.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
projection
Attributes that are copied from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
- Parameters:
projection
- Attributes that are copied from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
projection
default AwsDynamoDbTableLocalSecondaryIndex.Builder projection(Consumer<AwsDynamoDbTableProjection.Builder> projection) Attributes that are copied from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
This is a convenience method that creates an instance of theAwsDynamoDbTableProjection.Builder
avoiding the need to create one manually viaAwsDynamoDbTableProjection.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprojection(AwsDynamoDbTableProjection)
.- Parameters:
projection
- a consumer that will call methods onAwsDynamoDbTableProjection.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-