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.Builder
replicationSpecification
(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
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 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.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,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_REGION
orMULTI_REGION
. -
regionList
- if thereplicationStrategy
isMULTI_REGION
, theregionList
requires 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_REGION
orMULTI_REGION
. -
regionList
- if thereplicationStrategy
isMULTI_REGION
, theregionList
requires 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_REGION
orMULTI_REGION
. -
regionList
- if thereplicationStrategy
isMULTI_REGION
, theregionList
requires 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.Builder
avoiding the need to create one manually viaReplicationSpecification.builder()
.When the
Consumer
completes,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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in 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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-