/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.keyspaces.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Represents the properties of a keyspace. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class KeyspaceSummary implements Serializable, Cloneable, StructuredPojo { /** ** The name of the keyspace. *
*/ private String keyspaceName; /** ** The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN). *
*/ private String resourceArn; /** *
* This property specifies if a keyspace is a single Region keyspace or a multi-Region keyspace. The available
* values 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 KeyspaceSummary withKeyspaceName(String keyspaceName) { setKeyspaceName(keyspaceName); return this; } /** ** The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN). *
* * @param resourceArn * The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN). */ public void setResourceArn(String resourceArn) { this.resourceArn = resourceArn; } /** ** The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN). *
* * @return The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN). */ public String getResourceArn() { return this.resourceArn; } /** ** The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN). *
* * @param resourceArn * The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN). * @return Returns a reference to this object so that method calls can be chained together. */ public KeyspaceSummary withResourceArn(String resourceArn) { setResourceArn(resourceArn); return this; } /** *
* This property specifies if a keyspace is a single Region keyspace or a multi-Region keyspace. The available
* values are SINGLE_REGION
or MULTI_REGION
.
*
SINGLE_REGION
or MULTI_REGION
.
* @see Rs
*/
public void setReplicationStrategy(String replicationStrategy) {
this.replicationStrategy = replicationStrategy;
}
/**
*
* This property specifies if a keyspace is a single Region keyspace or a multi-Region keyspace. The available
* values are SINGLE_REGION
or MULTI_REGION
.
*
SINGLE_REGION
or MULTI_REGION
.
* @see Rs
*/
public String getReplicationStrategy() {
return this.replicationStrategy;
}
/**
*
* This property specifies if a keyspace is a single Region keyspace or a multi-Region keyspace. The available
* values 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 KeyspaceSummary withReplicationStrategy(String replicationStrategy) {
setReplicationStrategy(replicationStrategy);
return this;
}
/**
*
* This property specifies if a keyspace is a single Region keyspace or a multi-Region keyspace. The available
* values 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 KeyspaceSummary 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 KeyspaceSummary 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 KeyspaceSummary withReplicationRegions(java.util.Collection