Interface CreateKeyspaceRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateKeyspaceRequest.Builder,,CreateKeyspaceRequest> KeyspacesRequest.Builder,SdkBuilder<CreateKeyspaceRequest.Builder,,CreateKeyspaceRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateKeyspaceRequest
-
Method Summary
Modifier and TypeMethodDescriptionkeyspaceName(String keyspaceName) The name of the keyspace to be created.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreateKeyspaceRequest.BuilderreplicationSpecification(Consumer<ReplicationSpecification.Builder> replicationSpecification) The replication specification of the keyspace includes:replicationSpecification(ReplicationSpecification replicationSpecification) The replication specification of the keyspace includes:tags(Collection<Tag> tags) A list of key-value pair tags to be attached to the keyspace.tags(Consumer<Tag.Builder>... tags) A list of key-value pair tags to be attached to the keyspace.A list of key-value pair tags to be attached to the keyspace.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 to be created.
- Parameters:
keyspaceName- The name of the keyspace to be created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of key-value pair tags to be attached to the keyspace.
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 keyspace.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
A list of key-value pair tags to be attached to the keyspace.
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 keyspace.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
A list of key-value pair tags to be attached to the keyspace.
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 totags(List<Tag>).- 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:
-
replicationSpecification
CreateKeyspaceRequest.Builder replicationSpecification(ReplicationSpecification replicationSpecification) The replication specification of the keyspace includes:
-
replicationStrategy- the required value isSINGLE_REGIONorMULTI_REGION. -
regionList- if thereplicationStrategyisMULTI_REGION, theregionListrequires the current Region and at least one additional Amazon Web Services Region where the keyspace is going to be replicated in. The maximum number of supported replication Regions including the current Region is six.
- Parameters:
replicationSpecification- The replication specification of the keyspace includes:-
replicationStrategy- the required value isSINGLE_REGIONorMULTI_REGION. -
regionList- if thereplicationStrategyisMULTI_REGION, theregionListrequires the current Region and at least one additional Amazon Web Services Region where the keyspace is going to be replicated in. The maximum number of supported replication Regions including the current Region is six.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
replicationSpecification
default CreateKeyspaceRequest.Builder replicationSpecification(Consumer<ReplicationSpecification.Builder> replicationSpecification) The replication specification of the keyspace includes:
-
replicationStrategy- the required value isSINGLE_REGIONorMULTI_REGION. -
regionList- if thereplicationStrategyisMULTI_REGION, theregionListrequires the current Region and at least one additional Amazon Web Services Region where the keyspace is going to be replicated in. The maximum number of supported replication Regions including the current Region is six.
ReplicationSpecification.Builderavoiding the need to create one manually viaReplicationSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreplicationSpecification(ReplicationSpecification).- Parameters:
replicationSpecification- a consumer that will call methods onReplicationSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
overrideConfiguration
CreateKeyspaceRequest.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
CreateKeyspaceRequest.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.
-