Class CreateTableEnhancedRequest.Builder
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.model.CreateTableEnhancedRequest.Builder
-
- Enclosing class:
- CreateTableEnhancedRequest
@NotThreadSafe public static final class CreateTableEnhancedRequest.Builder extends Object
A builder that is used to create a request with the desired parameters.
-
-
Method Summary
-
-
-
Method Detail
-
provisionedThroughput
public CreateTableEnhancedRequest.Builder provisionedThroughput(ProvisionedThroughput provisionedThroughput)
Sets the provisioned throughput for this table. Use this parameter to set the table's read and write capacity units.See the DynamoDb documentation for more information on default throughput values.
-
provisionedThroughput
public CreateTableEnhancedRequest.Builder provisionedThroughput(Consumer<ProvisionedThroughput.Builder> provisionedThroughput)
This is a convenience method forprovisionedThroughput(ProvisionedThroughput)
that creates an instance of theProvisionedThroughput.Builder
for you, avoiding the need to create one manually viaProvisionedThroughput.builder()
.
-
streamSpecification
public CreateTableEnhancedRequest.Builder streamSpecification(StreamSpecification streamSpecification)
Sets theStreamSpecification
for this table.See the DynamoDb documentation for more information on stream specification values.
-
streamSpecification
public CreateTableEnhancedRequest.Builder streamSpecification(Consumer<StreamSpecification.Builder> streamSpecification)
This is a convenience method forstreamSpecification(StreamSpecification)
that creates an instance of theStreamSpecification.Builder
for you, avoiding the need to create one manually viaStreamSpecification.builder()
.
-
localSecondaryIndices
public CreateTableEnhancedRequest.Builder localSecondaryIndices(Collection<EnhancedLocalSecondaryIndex> localSecondaryIndices)
Defines a local secondary index for this table.See
EnhancedLocalSecondaryIndex
for more information on creating and using a local secondary index.
-
localSecondaryIndices
public CreateTableEnhancedRequest.Builder localSecondaryIndices(EnhancedLocalSecondaryIndex... localSecondaryIndices)
Defines a local secondary index for this table.See
EnhancedLocalSecondaryIndex
for more information on creating and using a local secondary index.
-
localSecondaryIndices
@SafeVarargs public final CreateTableEnhancedRequest.Builder localSecondaryIndices(Consumer<EnhancedLocalSecondaryIndex.Builder>... localSecondaryIndices)
This is a convenience method forlocalSecondaryIndices(Collection)
that creates instances of theEnhancedLocalSecondaryIndex.Builder
for you, avoiding the need to create them manually viaEnhancedLocalSecondaryIndex.builder()
.
-
globalSecondaryIndices
public CreateTableEnhancedRequest.Builder globalSecondaryIndices(Collection<EnhancedGlobalSecondaryIndex> globalSecondaryIndices)
Defines a global secondary index for this table.See
EnhancedGlobalSecondaryIndex
for more information on creating and using a global secondary index.
-
globalSecondaryIndices
public CreateTableEnhancedRequest.Builder globalSecondaryIndices(EnhancedGlobalSecondaryIndex... globalSecondaryIndices)
Defines a global secondary index for this table.See
EnhancedGlobalSecondaryIndex
for more information on creating and using a global secondary index.
-
globalSecondaryIndices
@SafeVarargs public final CreateTableEnhancedRequest.Builder globalSecondaryIndices(Consumer<EnhancedGlobalSecondaryIndex.Builder>... globalSecondaryIndices)
This is a convenience method forglobalSecondaryIndices(Collection)
that creates instances of theEnhancedGlobalSecondaryIndex.Builder
for you, avoiding the need to create them manually viaEnhancedGlobalSecondaryIndex.builder()
.
-
build
public CreateTableEnhancedRequest build()
-
-