Interface CreateGlobalSecondaryIndexAction.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CreateGlobalSecondaryIndexAction.Builder,
,CreateGlobalSecondaryIndexAction> SdkBuilder<CreateGlobalSecondaryIndexAction.Builder,
,CreateGlobalSecondaryIndexAction> SdkPojo
- Enclosing class:
CreateGlobalSecondaryIndexAction
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the global secondary index to be created.keySchema
(Collection<KeySchemaElement> keySchema) The key schema for the global secondary index.keySchema
(Consumer<KeySchemaElement.Builder>... keySchema) The key schema for the global secondary index.keySchema
(KeySchemaElement... keySchema) The key schema for the global secondary index.onDemandThroughput
(Consumer<OnDemandThroughput.Builder> onDemandThroughput) The maximum number of read and write units for the global secondary index being created.onDemandThroughput
(OnDemandThroughput onDemandThroughput) The maximum number of read and write units for the global secondary index being created.projection
(Consumer<Projection.Builder> projection) Represents attributes that are copied (projected) from the table into an index.projection
(Projection projection) Represents attributes that are copied (projected) from the table into an index.provisionedThroughput
(Consumer<ProvisionedThroughput.Builder> provisionedThroughput) Represents the provisioned throughput settings for the specified global secondary index.provisionedThroughput
(ProvisionedThroughput provisionedThroughput) Represents the provisioned throughput settings for the specified global secondary 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
-
indexName
The name of the global secondary index to be created.
- Parameters:
indexName
- The name of the global secondary index to be created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keySchema
The key schema for the global secondary index.
- Parameters:
keySchema
- The key schema for the global secondary index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keySchema
The key schema for the global secondary index.
- Parameters:
keySchema
- The key schema for the global secondary index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keySchema
The key schema for the global secondary index.
This is a convenience method that creates an instance of theKeySchemaElement.Builder
avoiding the need to create one manually viaKeySchemaElement.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tokeySchema(List<KeySchemaElement>)
.- Parameters:
keySchema
- a consumer that will call methods onKeySchemaElement.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
projection
Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
- Parameters:
projection
- Represents attributes that are copied (projected) from the table into an 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 CreateGlobalSecondaryIndexAction.Builder projection(Consumer<Projection.Builder> projection) Represents attributes that are copied (projected) from the table into an 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 theProjection.Builder
avoiding the need to create one manually viaProjection.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprojection(Projection)
.- Parameters:
projection
- a consumer that will call methods onProjection.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
provisionedThroughput
CreateGlobalSecondaryIndexAction.Builder provisionedThroughput(ProvisionedThroughput provisionedThroughput) Represents the provisioned throughput settings for the specified global secondary index.
For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
- Parameters:
provisionedThroughput
- Represents the provisioned throughput settings for the specified global secondary index.For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
provisionedThroughput
default CreateGlobalSecondaryIndexAction.Builder provisionedThroughput(Consumer<ProvisionedThroughput.Builder> provisionedThroughput) Represents the provisioned throughput settings for the specified global secondary index.
For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
This is a convenience method that creates an instance of theProvisionedThroughput.Builder
avoiding the need to create one manually viaProvisionedThroughput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprovisionedThroughput(ProvisionedThroughput)
.- Parameters:
provisionedThroughput
- a consumer that will call methods onProvisionedThroughput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
onDemandThroughput
The maximum number of read and write units for the global secondary index being created. If you use this parameter, you must specify
MaxReadRequestUnits
,MaxWriteRequestUnits
, or both.- Parameters:
onDemandThroughput
- The maximum number of read and write units for the global secondary index being created. If you use this parameter, you must specifyMaxReadRequestUnits
,MaxWriteRequestUnits
, or both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onDemandThroughput
default CreateGlobalSecondaryIndexAction.Builder onDemandThroughput(Consumer<OnDemandThroughput.Builder> onDemandThroughput) The maximum number of read and write units for the global secondary index being created. If you use this parameter, you must specify
This is a convenience method that creates an instance of theMaxReadRequestUnits
,MaxWriteRequestUnits
, or both.OnDemandThroughput.Builder
avoiding the need to create one manually viaOnDemandThroughput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toonDemandThroughput(OnDemandThroughput)
.- Parameters:
onDemandThroughput
- a consumer that will call methods onOnDemandThroughput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-