Interface UpdateTableRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateTableRequest.Builder,,UpdateTableRequest> KeyspacesRequest.Builder,SdkBuilder<UpdateTableRequest.Builder,,UpdateTableRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateTableRequest
-
Method Summary
Modifier and TypeMethodDescriptionaddColumns(Collection<ColumnDefinition> addColumns) For each column to be added to the specified table:addColumns(Consumer<ColumnDefinition.Builder>... addColumns) For each column to be added to the specified table:addColumns(ColumnDefinition... addColumns) For each column to be added to the specified table:default UpdateTableRequest.BuilderautoScalingSpecification(Consumer<AutoScalingSpecification.Builder> autoScalingSpecification) The optional auto scaling settings to update for a table in provisioned capacity mode.autoScalingSpecification(AutoScalingSpecification autoScalingSpecification) The optional auto scaling settings to update for a table in provisioned capacity mode.default UpdateTableRequest.BuildercapacitySpecification(Consumer<CapacitySpecification.Builder> capacitySpecification) Modifies the read/write throughput capacity mode for the table.capacitySpecification(CapacitySpecification capacitySpecification) Modifies the read/write throughput capacity mode for the table.default UpdateTableRequest.BuilderclientSideTimestamps(Consumer<ClientSideTimestamps.Builder> clientSideTimestamps) Enables client-side timestamps for the table.clientSideTimestamps(ClientSideTimestamps clientSideTimestamps) Enables client-side timestamps for the table.defaultTimeToLive(Integer defaultTimeToLive) The default Time to Live setting in seconds for the table.default UpdateTableRequest.BuilderencryptionSpecification(Consumer<EncryptionSpecification.Builder> encryptionSpecification) Modifies the encryption settings of the table.encryptionSpecification(EncryptionSpecification encryptionSpecification) Modifies the encryption settings of the table.keyspaceName(String keyspaceName) The name of the keyspace the specified table is stored in.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default UpdateTableRequest.BuilderpointInTimeRecovery(Consumer<PointInTimeRecovery.Builder> pointInTimeRecovery) Modifies thepointInTimeRecoverysettings of the table.pointInTimeRecovery(PointInTimeRecovery pointInTimeRecovery) Modifies thepointInTimeRecoverysettings of the table.replicaSpecifications(Collection<ReplicaSpecification> replicaSpecifications) The Region specific settings of a multi-Regional table.replicaSpecifications(Consumer<ReplicaSpecification.Builder>... replicaSpecifications) The Region specific settings of a multi-Regional table.replicaSpecifications(ReplicaSpecification... replicaSpecifications) The Region specific settings of a multi-Regional table.The name of the table.default UpdateTableRequest.Builderttl(Consumer<TimeToLive.Builder> ttl) Modifies Time to Live custom settings for the table.ttl(TimeToLive ttl) Modifies Time to Live custom settings for the table.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.keyspaces.model.KeyspacesRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
keyspaceName
The name of the keyspace the specified table is stored in.
- Parameters:
keyspaceName- The name of the keyspace the specified table is stored in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tableName
The name of the table.
- Parameters:
tableName- The name of the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addColumns
For each column to be added to the specified table:
-
name- The name of the column. -
type- An Amazon Keyspaces data type. For more information, see Data types in the Amazon Keyspaces Developer Guide.
- Parameters:
addColumns- For each column to be added to the specified table:-
name- The name of the column. -
type- An Amazon Keyspaces data type. For more information, see Data types in the Amazon Keyspaces Developer Guide.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
addColumns
For each column to be added to the specified table:
-
name- The name of the column. -
type- An Amazon Keyspaces data type. For more information, see Data types in the Amazon Keyspaces Developer Guide.
- Parameters:
addColumns- For each column to be added to the specified table:-
name- The name of the column. -
type- An Amazon Keyspaces data type. For more information, see Data types in the Amazon Keyspaces Developer Guide.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
addColumns
For each column to be added to the specified table:
-
name- The name of the column. -
type- An Amazon Keyspaces data type. For more information, see Data types in the Amazon Keyspaces Developer Guide.
ColumnDefinition.Builderavoiding the need to create one manually viaColumnDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaddColumns(List<ColumnDefinition>).- Parameters:
addColumns- a consumer that will call methods onColumnDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
capacitySpecification
Modifies the read/write throughput capacity mode for the table. The options are:
-
throughputMode:PAY_PER_REQUESTand -
throughputMode:PROVISIONED- Provisioned capacity mode requiresreadCapacityUnitsandwriteCapacityUnitsas input.
The default is
throughput_mode:PAY_PER_REQUEST.For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.
- Parameters:
capacitySpecification- Modifies the read/write throughput capacity mode for the table. The options are:-
throughputMode:PAY_PER_REQUESTand -
throughputMode:PROVISIONED- Provisioned capacity mode requiresreadCapacityUnitsandwriteCapacityUnitsas input.
The default is
throughput_mode:PAY_PER_REQUEST.For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
capacitySpecification
default UpdateTableRequest.Builder capacitySpecification(Consumer<CapacitySpecification.Builder> capacitySpecification) Modifies the read/write throughput capacity mode for the table. The options are:
-
throughputMode:PAY_PER_REQUESTand -
throughputMode:PROVISIONED- Provisioned capacity mode requiresreadCapacityUnitsandwriteCapacityUnitsas input.
The default is
throughput_mode:PAY_PER_REQUEST.For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.
This is a convenience method that creates an instance of theCapacitySpecification.Builderavoiding the need to create one manually viaCapacitySpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocapacitySpecification(CapacitySpecification).- Parameters:
capacitySpecification- a consumer that will call methods onCapacitySpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
encryptionSpecification
Modifies the encryption settings of the table. You can choose one of the following KMS key (KMS key):
-
type:AWS_OWNED_KMS_KEY- This key is owned by Amazon Keyspaces. -
type:CUSTOMER_MANAGED_KMS_KEY- This key is stored in your account and is created, owned, and managed by you. This option requires thekms_key_identifierof the KMS key in Amazon Resource Name (ARN) format as input.
The default is
AWS_OWNED_KMS_KEY.For more information, see Encryption at rest in the Amazon Keyspaces Developer Guide.
- Parameters:
encryptionSpecification- Modifies the encryption settings of the table. You can choose one of the following KMS key (KMS key):-
type:AWS_OWNED_KMS_KEY- This key is owned by Amazon Keyspaces. -
type:CUSTOMER_MANAGED_KMS_KEY- This key is stored in your account and is created, owned, and managed by you. This option requires thekms_key_identifierof the KMS key in Amazon Resource Name (ARN) format as input.
The default is
AWS_OWNED_KMS_KEY.For more information, see Encryption at rest in the Amazon Keyspaces Developer Guide.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
encryptionSpecification
default UpdateTableRequest.Builder encryptionSpecification(Consumer<EncryptionSpecification.Builder> encryptionSpecification) Modifies the encryption settings of the table. You can choose one of the following KMS key (KMS key):
-
type:AWS_OWNED_KMS_KEY- This key is owned by Amazon Keyspaces. -
type:CUSTOMER_MANAGED_KMS_KEY- This key is stored in your account and is created, owned, and managed by you. This option requires thekms_key_identifierof the KMS key in Amazon Resource Name (ARN) format as input.
The default is
AWS_OWNED_KMS_KEY.For more information, see Encryption at rest in the Amazon Keyspaces Developer Guide.
This is a convenience method that creates an instance of theEncryptionSpecification.Builderavoiding the need to create one manually viaEncryptionSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toencryptionSpecification(EncryptionSpecification).- Parameters:
encryptionSpecification- a consumer that will call methods onEncryptionSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
pointInTimeRecovery
Modifies the
pointInTimeRecoverysettings of the table. The options are:-
status=ENABLED -
status=DISABLED
If it's not specified, the default is
status=DISABLED.For more information, see Point-in-time recovery in the Amazon Keyspaces Developer Guide.
- Parameters:
pointInTimeRecovery- Modifies thepointInTimeRecoverysettings of the table. The options are:-
status=ENABLED -
status=DISABLED
If it's not specified, the default is
status=DISABLED.For more information, see Point-in-time recovery in the Amazon Keyspaces Developer Guide.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
pointInTimeRecovery
default UpdateTableRequest.Builder pointInTimeRecovery(Consumer<PointInTimeRecovery.Builder> pointInTimeRecovery) Modifies the
pointInTimeRecoverysettings of the table. The options are:-
status=ENABLED -
status=DISABLED
If it's not specified, the default is
status=DISABLED.For more information, see Point-in-time recovery in the Amazon Keyspaces Developer Guide.
This is a convenience method that creates an instance of thePointInTimeRecovery.Builderavoiding the need to create one manually viaPointInTimeRecovery.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topointInTimeRecovery(PointInTimeRecovery).- Parameters:
pointInTimeRecovery- a consumer that will call methods onPointInTimeRecovery.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
ttl
Modifies Time to Live custom settings for the table. The options are:
-
status:enabled -
status:disabled
The default is
status:disabled. Afterttlis enabled, you can't disable it for the table.For more information, see Expiring data by using Amazon Keyspaces Time to Live (TTL) in the Amazon Keyspaces Developer Guide.
- Parameters:
ttl- Modifies Time to Live custom settings for the table. The options are:-
status:enabled -
status:disabled
The default is
status:disabled. Afterttlis enabled, you can't disable it for the table.For more information, see Expiring data by using Amazon Keyspaces Time to Live (TTL) in the Amazon Keyspaces Developer Guide.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
ttl
Modifies Time to Live custom settings for the table. The options are:
-
status:enabled -
status:disabled
The default is
status:disabled. Afterttlis enabled, you can't disable it for the table.For more information, see Expiring data by using Amazon Keyspaces Time to Live (TTL) in the Amazon Keyspaces Developer Guide.
This is a convenience method that creates an instance of theTimeToLive.Builderavoiding the need to create one manually viaTimeToLive.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tottl(TimeToLive).- Parameters:
ttl- a consumer that will call methods onTimeToLive.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
defaultTimeToLive
The default Time to Live setting in seconds for the table.
For more information, see Setting the default TTL value for a table in the Amazon Keyspaces Developer Guide.
- Parameters:
defaultTimeToLive- The default Time to Live setting in seconds for the table.For more information, see Setting the default TTL value for a table in the Amazon Keyspaces Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientSideTimestamps
Enables client-side timestamps for the table. By default, the setting is disabled. You can enable client-side timestamps with the following option:
-
status: "enabled"
Once client-side timestamps are enabled for a table, this setting cannot be disabled.
- Parameters:
clientSideTimestamps- Enables client-side timestamps for the table. By default, the setting is disabled. You can enable client-side timestamps with the following option:-
status: "enabled"
Once client-side timestamps are enabled for a table, this setting cannot be disabled.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
clientSideTimestamps
default UpdateTableRequest.Builder clientSideTimestamps(Consumer<ClientSideTimestamps.Builder> clientSideTimestamps) Enables client-side timestamps for the table. By default, the setting is disabled. You can enable client-side timestamps with the following option:
-
status: "enabled"
Once client-side timestamps are enabled for a table, this setting cannot be disabled.
This is a convenience method that creates an instance of theClientSideTimestamps.Builderavoiding the need to create one manually viaClientSideTimestamps.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toclientSideTimestamps(ClientSideTimestamps).- Parameters:
clientSideTimestamps- a consumer that will call methods onClientSideTimestamps.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
autoScalingSpecification
UpdateTableRequest.Builder autoScalingSpecification(AutoScalingSpecification autoScalingSpecification) The optional auto scaling settings to update for a table in provisioned capacity mode. Specifies if the service can manage throughput capacity of a provisioned table automatically on your behalf. Amazon Keyspaces auto scaling helps you provision throughput capacity for variable workloads efficiently by increasing and decreasing your table's read and write capacity automatically in response to application traffic.
If auto scaling is already enabled for the table, you can use
UpdateTableto update the minimum and maximum values or the auto scaling policy settings independently.For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide.
- Parameters:
autoScalingSpecification- The optional auto scaling settings to update for a table in provisioned capacity mode. Specifies if the service can manage throughput capacity of a provisioned table automatically on your behalf. Amazon Keyspaces auto scaling helps you provision throughput capacity for variable workloads efficiently by increasing and decreasing your table's read and write capacity automatically in response to application traffic.If auto scaling is already enabled for the table, you can use
UpdateTableto update the minimum and maximum values or the auto scaling policy settings independently.For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingSpecification
default UpdateTableRequest.Builder autoScalingSpecification(Consumer<AutoScalingSpecification.Builder> autoScalingSpecification) The optional auto scaling settings to update for a table in provisioned capacity mode. Specifies if the service can manage throughput capacity of a provisioned table automatically on your behalf. Amazon Keyspaces auto scaling helps you provision throughput capacity for variable workloads efficiently by increasing and decreasing your table's read and write capacity automatically in response to application traffic.
If auto scaling is already enabled for the table, you can use
UpdateTableto update the minimum and maximum values or the auto scaling policy settings independently.For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide.
This is a convenience method that creates an instance of theAutoScalingSpecification.Builderavoiding the need to create one manually viaAutoScalingSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toautoScalingSpecification(AutoScalingSpecification).- Parameters:
autoScalingSpecification- a consumer that will call methods onAutoScalingSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
replicaSpecifications
UpdateTableRequest.Builder replicaSpecifications(Collection<ReplicaSpecification> replicaSpecifications) The Region specific settings of a multi-Regional table.
- Parameters:
replicaSpecifications- The Region specific settings of a multi-Regional table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicaSpecifications
The Region specific settings of a multi-Regional table.
- Parameters:
replicaSpecifications- The Region specific settings of a multi-Regional table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicaSpecifications
UpdateTableRequest.Builder replicaSpecifications(Consumer<ReplicaSpecification.Builder>... replicaSpecifications) The Region specific settings of a multi-Regional table.
This is a convenience method that creates an instance of theReplicaSpecification.Builderavoiding the need to create one manually viaReplicaSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreplicaSpecifications(List<ReplicaSpecification>).- Parameters:
replicaSpecifications- a consumer that will call methods onReplicaSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateTableRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateTableRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-