public class CreateReplicationGroupRequest extends AmazonWebServiceRequest implements Serializable
CreateReplicationGroup operation
.
The CreateReplicationGroup operation creates a replication group. A replication group is a collection of cache clusters, where one of the clusters is a read/write primary and the other clusters are read-only replicas. Writes to the primary are automatically propagated to the replicas.
When you create a replication group, you must specify an existing cache cluster that is in the primary role. When the replication group has been successfully created, you can add one or more read replica replicas to it, up to a total of five read replicas.
NOOP
Constructor and Description |
---|
CreateReplicationGroupRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getPrimaryClusterId()
The identifier of the cache cluster that will serve as the primary for
this replication group.
|
String |
getReplicationGroupDescription()
A user-specified description for the replication group.
|
String |
getReplicationGroupId()
The replication group identifier.
|
int |
hashCode() |
void |
setPrimaryClusterId(String primaryClusterId)
The identifier of the cache cluster that will serve as the primary for
this replication group.
|
void |
setReplicationGroupDescription(String replicationGroupDescription)
A user-specified description for the replication group.
|
void |
setReplicationGroupId(String replicationGroupId)
The replication group identifier.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateReplicationGroupRequest |
withPrimaryClusterId(String primaryClusterId)
The identifier of the cache cluster that will serve as the primary for
this replication group.
|
CreateReplicationGroupRequest |
withReplicationGroupDescription(String replicationGroupDescription)
A user-specified description for the replication group.
|
CreateReplicationGroupRequest |
withReplicationGroupId(String replicationGroupId)
The replication group identifier.
|
copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getReplicationGroupId()
Constraints:
Constraints:
public void setReplicationGroupId(String replicationGroupId)
Constraints:
replicationGroupId
- The replication group identifier. This parameter is stored as a
lowercase string. Constraints:
public CreateReplicationGroupRequest withReplicationGroupId(String replicationGroupId)
Constraints:
Returns a reference to this object so that method calls can be chained together.
replicationGroupId
- The replication group identifier. This parameter is stored as a
lowercase string. Constraints:
public String getPrimaryClusterId()
public void setPrimaryClusterId(String primaryClusterId)
primaryClusterId
- The identifier of the cache cluster that will serve as the primary for
this replication group. This cache cluster must already exist and have
a status of available.public CreateReplicationGroupRequest withPrimaryClusterId(String primaryClusterId)
Returns a reference to this object so that method calls can be chained together.
primaryClusterId
- The identifier of the cache cluster that will serve as the primary for
this replication group. This cache cluster must already exist and have
a status of available.public String getReplicationGroupDescription()
public void setReplicationGroupDescription(String replicationGroupDescription)
replicationGroupDescription
- A user-specified description for the replication group.public CreateReplicationGroupRequest withReplicationGroupDescription(String replicationGroupDescription)
Returns a reference to this object so that method calls can be chained together.
replicationGroupDescription
- A user-specified description for the replication group.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.