com.amazonaws.services.elasticache.model
Class CreateReplicationGroupRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.elasticache.model.CreateReplicationGroupRequest
All Implemented Interfaces:
Serializable

public class CreateReplicationGroupRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the 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.

See Also:
AmazonElastiCache.createReplicationGroup(CreateReplicationGroupRequest), Serialized Form

Constructor Summary
CreateReplicationGroupRequest()
           
 
Method Summary
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateReplicationGroupRequest

public CreateReplicationGroupRequest()
Method Detail

getReplicationGroupId

public String getReplicationGroupId()
The replication group identifier. This parameter is stored as a lowercase string.

Constraints:

Returns:
The replication group identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 20 alphanumeric characters or hyphens.
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.

setReplicationGroupId

public void setReplicationGroupId(String replicationGroupId)
The replication group identifier. This parameter is stored as a lowercase string.

Constraints:

Parameters:
replicationGroupId - The replication group identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 20 alphanumeric characters or hyphens.
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.

withReplicationGroupId

public CreateReplicationGroupRequest withReplicationGroupId(String replicationGroupId)
The replication group identifier. This parameter is stored as a lowercase string.

Constraints:

Returns a reference to this object so that method calls can be chained together.

Parameters:
replicationGroupId - The replication group identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 20 alphanumeric characters or hyphens.
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.
Returns:
A reference to this updated object so that method calls can be chained together.

getPrimaryClusterId

public String getPrimaryClusterId()
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.

Returns:
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.

setPrimaryClusterId

public void setPrimaryClusterId(String 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.

Parameters:
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.

withPrimaryClusterId

public CreateReplicationGroupRequest withPrimaryClusterId(String 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getReplicationGroupDescription

public String getReplicationGroupDescription()
A user-specified description for the replication group.

Returns:
A user-specified description for the replication group.

setReplicationGroupDescription

public void setReplicationGroupDescription(String replicationGroupDescription)
A user-specified description for the replication group.

Parameters:
replicationGroupDescription - A user-specified description for the replication group.

withReplicationGroupDescription

public CreateReplicationGroupRequest withReplicationGroupDescription(String replicationGroupDescription)
A user-specified description for the replication group.

Returns a reference to this object so that method calls can be chained together.

Parameters:
replicationGroupDescription - A user-specified description for the replication group.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.