Interface CreateTableRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateTableRequest.Builder,CreateTableRequest>,KeyspacesRequest.Builder,SdkBuilder<CreateTableRequest.Builder,CreateTableRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateTableRequest
public static interface CreateTableRequest.Builder extends KeyspacesRequest.Builder, SdkPojo, CopyableBuilder<CreateTableRequest.Builder,CreateTableRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreateTableRequest.BuildercapacitySpecification(Consumer<CapacitySpecification.Builder> capacitySpecification)Specifies the read/write throughput capacity mode for the table.CreateTableRequest.BuildercapacitySpecification(CapacitySpecification capacitySpecification)Specifies the read/write throughput capacity mode for the table.default CreateTableRequest.BuilderclientSideTimestamps(Consumer<ClientSideTimestamps.Builder> clientSideTimestamps)Enables client-side timestamps for the table.CreateTableRequest.BuilderclientSideTimestamps(ClientSideTimestamps clientSideTimestamps)Enables client-side timestamps for the table.default CreateTableRequest.Buildercomment(Consumer<Comment.Builder> comment)This parameter allows to enter a description of the table.CreateTableRequest.Buildercomment(Comment comment)This parameter allows to enter a description of the table.CreateTableRequest.BuilderdefaultTimeToLive(Integer defaultTimeToLive)The default Time to Live setting in seconds for the table.default CreateTableRequest.BuilderencryptionSpecification(Consumer<EncryptionSpecification.Builder> encryptionSpecification)Specifies how the encryption key for encryption at rest is managed for the table.CreateTableRequest.BuilderencryptionSpecification(EncryptionSpecification encryptionSpecification)Specifies how the encryption key for encryption at rest is managed for the table.CreateTableRequest.BuilderkeyspaceName(String keyspaceName)The name of the keyspace that the table is going to be created in.CreateTableRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateTableRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default CreateTableRequest.BuilderpointInTimeRecovery(Consumer<PointInTimeRecovery.Builder> pointInTimeRecovery)Specifies ifpointInTimeRecoveryis enabled or disabled for the table.CreateTableRequest.BuilderpointInTimeRecovery(PointInTimeRecovery pointInTimeRecovery)Specifies ifpointInTimeRecoveryis enabled or disabled for the table.default CreateTableRequest.BuilderschemaDefinition(Consumer<SchemaDefinition.Builder> schemaDefinition)TheschemaDefinitionconsists of the following parameters.CreateTableRequest.BuilderschemaDefinition(SchemaDefinition schemaDefinition)TheschemaDefinitionconsists of the following parameters.CreateTableRequest.BuildertableName(String tableName)The name of the table.CreateTableRequest.Buildertags(Collection<Tag> tags)A list of key-value pair tags to be attached to the resource.CreateTableRequest.Buildertags(Consumer<Tag.Builder>... tags)A list of key-value pair tags to be attached to the resource.CreateTableRequest.Buildertags(Tag... tags)A list of key-value pair tags to be attached to the resource.default CreateTableRequest.Builderttl(Consumer<TimeToLive.Builder> ttl)Enables Time to Live custom settings for the table.CreateTableRequest.Builderttl(TimeToLive ttl)Enables Time to Live custom settings for the table.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.keyspaces.model.KeyspacesRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
keyspaceName
CreateTableRequest.Builder keyspaceName(String keyspaceName)
The name of the keyspace that the table is going to be created in.
- Parameters:
keyspaceName- The name of the keyspace that the table is going to be created in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tableName
CreateTableRequest.Builder tableName(String 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.
-
schemaDefinition
CreateTableRequest.Builder schemaDefinition(SchemaDefinition schemaDefinition)
The
schemaDefinitionconsists of the following parameters.For each column to be created:
-
name- The name of the column. -
type- An Amazon Keyspaces data type. For more information, see Data types in the Amazon Keyspaces Developer Guide.
The primary key of the table consists of the following columns:
-
partitionKeys- The partition key can be a single column, or it can be a compound value composed of two or more columns. The partition key portion of the primary key is required and determines how Amazon Keyspaces stores your data. -
name- The name of each partition key column. -
clusteringKeys- The optional clustering column portion of your primary key determines how the data is clustered and sorted within each partition. -
name- The name of the clustering column. -
orderBy- Sets the ascendant (ASC) or descendant (DESC) order modifier.To define a column as static use
staticColumns- Static columns store values that are shared by all rows in the same partition: -
name- The name of the column. -
type- An Amazon Keyspaces data type.
- Parameters:
schemaDefinition- TheschemaDefinitionconsists of the following parameters.For each column to be created:
-
name- The name of the column. -
type- An Amazon Keyspaces data type. For more information, see Data types in the Amazon Keyspaces Developer Guide.
The primary key of the table consists of the following columns:
-
partitionKeys- The partition key can be a single column, or it can be a compound value composed of two or more columns. The partition key portion of the primary key is required and determines how Amazon Keyspaces stores your data. -
name- The name of each partition key column. -
clusteringKeys- The optional clustering column portion of your primary key determines how the data is clustered and sorted within each partition. -
name- The name of the clustering column. -
orderBy- Sets the ascendant (ASC) or descendant (DESC) order modifier.To define a column as static use
staticColumns- Static columns store values that are shared by all rows in the same partition: -
name- The name of the column. -
type- An Amazon Keyspaces data type.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
schemaDefinition
default CreateTableRequest.Builder schemaDefinition(Consumer<SchemaDefinition.Builder> schemaDefinition)
The
schemaDefinitionconsists of the following parameters.For each column to be created:
-
name- The name of the column. -
type- An Amazon Keyspaces data type. For more information, see Data types in the Amazon Keyspaces Developer Guide.
The primary key of the table consists of the following columns:
-
partitionKeys- The partition key can be a single column, or it can be a compound value composed of two or more columns. The partition key portion of the primary key is required and determines how Amazon Keyspaces stores your data. -
name- The name of each partition key column. -
clusteringKeys- The optional clustering column portion of your primary key determines how the data is clustered and sorted within each partition. -
name- The name of the clustering column. -
orderBy- Sets the ascendant (ASC) or descendant (DESC) order modifier.To define a column as static use
staticColumns- Static columns store values that are shared by all rows in the same partition: -
name- The name of the column. -
type- An Amazon Keyspaces data type.
SchemaDefinition.Builderavoiding the need to create one manually viaSchemaDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toschemaDefinition(SchemaDefinition).- Parameters:
schemaDefinition- a consumer that will call methods onSchemaDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
schemaDefinition(SchemaDefinition)
-
-
comment
CreateTableRequest.Builder comment(Comment comment)
This parameter allows to enter a description of the table.
- Parameters:
comment- This parameter allows to enter a description of the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
comment
default CreateTableRequest.Builder comment(Consumer<Comment.Builder> comment)
This parameter allows to enter a description of the table.
This is a convenience method that creates an instance of theComment.Builderavoiding the need to create one manually viaComment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocomment(Comment).- Parameters:
comment- a consumer that will call methods onComment.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
comment(Comment)
-
capacitySpecification
CreateTableRequest.Builder capacitySpecification(CapacitySpecification capacitySpecification)
Specifies 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- Specifies 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 CreateTableRequest.Builder capacitySpecification(Consumer<CapacitySpecification.Builder> capacitySpecification)
Specifies 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:
capacitySpecification(CapacitySpecification)
-
-
encryptionSpecification
CreateTableRequest.Builder encryptionSpecification(EncryptionSpecification encryptionSpecification)
Specifies how the encryption key for encryption at rest is managed for 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
type:AWS_OWNED_KMS_KEY.For more information, see Encryption at rest in the Amazon Keyspaces Developer Guide.
- Parameters:
encryptionSpecification- Specifies how the encryption key for encryption at rest is managed for 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
type: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 CreateTableRequest.Builder encryptionSpecification(Consumer<EncryptionSpecification.Builder> encryptionSpecification)
Specifies how the encryption key for encryption at rest is managed for 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
type: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:
encryptionSpecification(EncryptionSpecification)
-
-
pointInTimeRecovery
CreateTableRequest.Builder pointInTimeRecovery(PointInTimeRecovery pointInTimeRecovery)
Specifies if
pointInTimeRecoveryis enabled or disabled for 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- Specifies ifpointInTimeRecoveryis enabled or disabled for 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 CreateTableRequest.Builder pointInTimeRecovery(Consumer<PointInTimeRecovery.Builder> pointInTimeRecovery)
Specifies if
pointInTimeRecoveryis enabled or disabled for 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:
pointInTimeRecovery(PointInTimeRecovery)
-
-
ttl
CreateTableRequest.Builder ttl(TimeToLive ttl)
Enables 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- Enables 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
default CreateTableRequest.Builder ttl(Consumer<TimeToLive.Builder> ttl)
Enables 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:
ttl(TimeToLive)
-
-
defaultTimeToLive
CreateTableRequest.Builder defaultTimeToLive(Integer 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.
-
tags
CreateTableRequest.Builder tags(Collection<Tag> tags)
A list of key-value pair tags to be attached to the resource.
For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.
- Parameters:
tags- A list of key-value pair tags to be attached to the resource.For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateTableRequest.Builder tags(Tag... tags)
A list of key-value pair tags to be attached to the resource.
For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.
- Parameters:
tags- A list of key-value pair tags to be attached to the resource.For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateTableRequest.Builder tags(Consumer<Tag.Builder>... tags)
A list of key-value pair tags to be attached to the resource.
For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
clientSideTimestamps
CreateTableRequest.Builder clientSideTimestamps(ClientSideTimestamps 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 CreateTableRequest.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:
clientSideTimestamps(ClientSideTimestamps)
-
-
overrideConfiguration
CreateTableRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateTableRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-