Interface GetKeyspaceResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetKeyspaceResponse.Builder,
,GetKeyspaceResponse> KeyspacesResponse.Builder
,SdkBuilder<GetKeyspaceResponse.Builder,
,GetKeyspaceResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetKeyspaceResponse
-
Method Summary
Modifier and TypeMethodDescriptionkeyspaceName
(String keyspaceName) The name of the keyspace.replicationGroupStatuses
(Collection<ReplicationGroupStatus> replicationGroupStatuses) A list of all Regions the keyspace is replicated in after the update keyspace operation and their status.replicationGroupStatuses
(Consumer<ReplicationGroupStatus.Builder>... replicationGroupStatuses) A list of all Regions the keyspace is replicated in after the update keyspace operation and their status.replicationGroupStatuses
(ReplicationGroupStatus... replicationGroupStatuses) A list of all Regions the keyspace is replicated in after the update keyspace operation and their status.replicationRegions
(String... replicationRegions) If thereplicationStrategy
of the keyspace isMULTI_REGION
, a list of replication Regions is returned.replicationRegions
(Collection<String> replicationRegions) If thereplicationStrategy
of the keyspace isMULTI_REGION
, a list of replication Regions is returned.replicationStrategy
(String replicationStrategy) Returns the replication strategy of the keyspace.replicationStrategy
(Rs replicationStrategy) Returns the replication strategy of the keyspace.resourceArn
(String resourceArn) Returns the ARN of the keyspace.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.keyspaces.model.KeyspacesResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
keyspaceName
The name of the keyspace.
- Parameters:
keyspaceName
- The name of the keyspace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceArn
Returns the ARN of the keyspace.
- Parameters:
resourceArn
- Returns the ARN of the keyspace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationStrategy
Returns the replication strategy of the keyspace. The options are
SINGLE_REGION
orMULTI_REGION
.- Parameters:
replicationStrategy
- Returns the replication strategy of the keyspace. The options areSINGLE_REGION
orMULTI_REGION
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
replicationStrategy
Returns the replication strategy of the keyspace. The options are
SINGLE_REGION
orMULTI_REGION
.- Parameters:
replicationStrategy
- Returns the replication strategy of the keyspace. The options areSINGLE_REGION
orMULTI_REGION
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
replicationRegions
If the
replicationStrategy
of the keyspace isMULTI_REGION
, a list of replication Regions is returned.- Parameters:
replicationRegions
- If thereplicationStrategy
of the keyspace isMULTI_REGION
, a list of replication Regions is returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationRegions
If the
replicationStrategy
of the keyspace isMULTI_REGION
, a list of replication Regions is returned.- Parameters:
replicationRegions
- If thereplicationStrategy
of the keyspace isMULTI_REGION
, a list of replication Regions is returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationGroupStatuses
GetKeyspaceResponse.Builder replicationGroupStatuses(Collection<ReplicationGroupStatus> replicationGroupStatuses) A list of all Regions the keyspace is replicated in after the update keyspace operation and their status.
- Parameters:
replicationGroupStatuses
- A list of all Regions the keyspace is replicated in after the update keyspace operation and their status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationGroupStatuses
GetKeyspaceResponse.Builder replicationGroupStatuses(ReplicationGroupStatus... replicationGroupStatuses) A list of all Regions the keyspace is replicated in after the update keyspace operation and their status.
- Parameters:
replicationGroupStatuses
- A list of all Regions the keyspace is replicated in after the update keyspace operation and their status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationGroupStatuses
GetKeyspaceResponse.Builder replicationGroupStatuses(Consumer<ReplicationGroupStatus.Builder>... replicationGroupStatuses) A list of all Regions the keyspace is replicated in after the update keyspace operation and their status.
This is a convenience method that creates an instance of theReplicationGroupStatus.Builder
avoiding the need to create one manually viaReplicationGroupStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toreplicationGroupStatuses(List<ReplicationGroupStatus>)
.- Parameters:
replicationGroupStatuses
- a consumer that will call methods onReplicationGroupStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-