* The name of the keyspace. *
*/ private String keyspaceName; /** ** Returns the ARN of the keyspace. *
*/ private String resourceArn; /** *
* Returns the replication strategy of the keyspace. The options are SINGLE_REGION
or
* MULTI_REGION
.
*
* If the replicationStrategy
of the keyspace is MULTI_REGION
, a list of replication
* Regions is returned.
*
* The name of the keyspace. *
* * @param keyspaceName * The name of the keyspace. */ public void setKeyspaceName(String keyspaceName) { this.keyspaceName = keyspaceName; } /** ** The name of the keyspace. *
* * @return The name of the keyspace. */ public String getKeyspaceName() { return this.keyspaceName; } /** ** The name of the keyspace. *
* * @param keyspaceName * The name of the keyspace. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKeyspaceResult withKeyspaceName(String keyspaceName) { setKeyspaceName(keyspaceName); return this; } /** ** Returns the ARN of the keyspace. *
* * @param resourceArn * Returns the ARN of the keyspace. */ public void setResourceArn(String resourceArn) { this.resourceArn = resourceArn; } /** ** Returns the ARN of the keyspace. *
* * @return Returns the ARN of the keyspace. */ public String getResourceArn() { return this.resourceArn; } /** ** Returns the ARN of the keyspace. *
* * @param resourceArn * Returns the ARN of the keyspace. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKeyspaceResult withResourceArn(String resourceArn) { setResourceArn(resourceArn); return this; } /** *
* Returns the replication strategy of the keyspace. The options are SINGLE_REGION
or
* MULTI_REGION
.
*
SINGLE_REGION
or
* MULTI_REGION
.
* @see Rs
*/
public void setReplicationStrategy(String replicationStrategy) {
this.replicationStrategy = replicationStrategy;
}
/**
*
* Returns the replication strategy of the keyspace. The options are SINGLE_REGION
or
* MULTI_REGION
.
*
SINGLE_REGION
or
* MULTI_REGION
.
* @see Rs
*/
public String getReplicationStrategy() {
return this.replicationStrategy;
}
/**
*
* Returns the replication strategy of the keyspace. The options are SINGLE_REGION
or
* MULTI_REGION
.
*
SINGLE_REGION
or
* MULTI_REGION
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Rs
*/
public GetKeyspaceResult withReplicationStrategy(String replicationStrategy) {
setReplicationStrategy(replicationStrategy);
return this;
}
/**
*
* Returns the replication strategy of the keyspace. The options are SINGLE_REGION
or
* MULTI_REGION
.
*
SINGLE_REGION
or
* MULTI_REGION
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Rs
*/
public GetKeyspaceResult withReplicationStrategy(Rs replicationStrategy) {
this.replicationStrategy = replicationStrategy.toString();
return this;
}
/**
*
* If the replicationStrategy
of the keyspace is MULTI_REGION
, a list of replication
* Regions is returned.
*
replicationStrategy
of the keyspace is MULTI_REGION
, a list of
* replication Regions is returned.
*/
public java.util.List
* If the replicationStrategy
of the keyspace is MULTI_REGION
, a list of replication
* Regions is returned.
*
replicationStrategy
of the keyspace is MULTI_REGION
, a list of
* replication Regions is returned.
*/
public void setReplicationRegions(java.util.Collection
* If the replicationStrategy
of the keyspace is MULTI_REGION
, a list of replication
* Regions is returned.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setReplicationRegions(java.util.Collection)} or {@link #withReplicationRegions(java.util.Collection)} if * you want to override the existing values. *
* * @param replicationRegions * If thereplicationStrategy
of the keyspace is MULTI_REGION
, a list of
* replication Regions is returned.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetKeyspaceResult withReplicationRegions(String... replicationRegions) {
if (this.replicationRegions == null) {
setReplicationRegions(new java.util.ArrayList
* If the replicationStrategy
of the keyspace is MULTI_REGION
, a list of replication
* Regions is returned.
*
replicationStrategy
of the keyspace is MULTI_REGION
, a list of
* replication Regions is returned.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetKeyspaceResult withReplicationRegions(java.util.Collection