Interface GetKeyspaceResponse.Builder

  • Method Details

    • keyspaceName

      GetKeyspaceResponse.Builder keyspaceName(String 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

      GetKeyspaceResponse.Builder resourceArn(String 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

      GetKeyspaceResponse.Builder replicationStrategy(String replicationStrategy)

      Returns the replication strategy of the keyspace. The options are SINGLE_REGION or MULTI_REGION.

      Parameters:
      replicationStrategy - Returns the replication strategy of the keyspace. The options are SINGLE_REGION or MULTI_REGION.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • replicationStrategy

      GetKeyspaceResponse.Builder replicationStrategy(Rs replicationStrategy)

      Returns the replication strategy of the keyspace. The options are SINGLE_REGION or MULTI_REGION.

      Parameters:
      replicationStrategy - Returns the replication strategy of the keyspace. The options are SINGLE_REGION or MULTI_REGION.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • replicationRegions

      GetKeyspaceResponse.Builder replicationRegions(Collection<String> replicationRegions)

      If the replicationStrategy of the keyspace is MULTI_REGION, a list of replication Regions is returned.

      Parameters:
      replicationRegions - If the replicationStrategy of the keyspace is MULTI_REGION, a list of replication Regions is returned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • replicationRegions

      GetKeyspaceResponse.Builder replicationRegions(String... replicationRegions)

      If the replicationStrategy of the keyspace is MULTI_REGION, a list of replication Regions is returned.

      Parameters:
      replicationRegions - If the replicationStrategy of the keyspace is MULTI_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 the ReplicationGroupStatus.Builder avoiding the need to create one manually via ReplicationGroupStatus.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to replicationGroupStatuses(List<ReplicationGroupStatus>).

      Parameters:
      replicationGroupStatuses - a consumer that will call methods on ReplicationGroupStatus.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: