com.amazonaws.services.elasticache.model
Class DeleteReplicationGroupRequest

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

public class DeleteReplicationGroupRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the DeleteReplicationGroup operation.

The DeleteReplicationGroup operation deletes an existing replication group. By default, this operation deletes the entire replication group, including the primary cache cluster and all of the read replicas. You can optionally delete only the read replicas, while retaining the primary cache cluster.

When you receive a successful response from this operation, Amazon ElastiCache immediately begins deleting the selected resources; you cannot cancel or revert this operation.

See Also:
AmazonElastiCache.deleteReplicationGroup(DeleteReplicationGroupRequest), Serialized Form

Constructor Summary
DeleteReplicationGroupRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getFinalSnapshotIdentifier()
          The name of a final cache cluster snapshot.
 String getReplicationGroupId()
          The identifier for the replication group to be deleted.
 Boolean getRetainPrimaryCluster()
          If set to true, all of the read replicas will be deleted, but the primary cache cluster will be retained.
 int hashCode()
           
 Boolean isRetainPrimaryCluster()
          If set to true, all of the read replicas will be deleted, but the primary cache cluster will be retained.
 void setFinalSnapshotIdentifier(String finalSnapshotIdentifier)
          The name of a final cache cluster snapshot.
 void setReplicationGroupId(String replicationGroupId)
          The identifier for the replication group to be deleted.
 void setRetainPrimaryCluster(Boolean retainPrimaryCluster)
          If set to true, all of the read replicas will be deleted, but the primary cache cluster will be retained.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeleteReplicationGroupRequest withFinalSnapshotIdentifier(String finalSnapshotIdentifier)
          The name of a final cache cluster snapshot.
 DeleteReplicationGroupRequest withReplicationGroupId(String replicationGroupId)
          The identifier for the replication group to be deleted.
 DeleteReplicationGroupRequest withRetainPrimaryCluster(Boolean retainPrimaryCluster)
          If set to true, all of the read replicas will be deleted, but the primary cache cluster will be retained.
 
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

DeleteReplicationGroupRequest

public DeleteReplicationGroupRequest()
Method Detail

getReplicationGroupId

public String getReplicationGroupId()
The identifier for the replication group to be deleted. This parameter is not case sensitive.

Returns:
The identifier for the replication group to be deleted. This parameter is not case sensitive.

setReplicationGroupId

public void setReplicationGroupId(String replicationGroupId)
The identifier for the replication group to be deleted. This parameter is not case sensitive.

Parameters:
replicationGroupId - The identifier for the replication group to be deleted. This parameter is not case sensitive.

withReplicationGroupId

public DeleteReplicationGroupRequest withReplicationGroupId(String replicationGroupId)
The identifier for the replication group to be deleted. This parameter is not case sensitive.

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

Parameters:
replicationGroupId - The identifier for the replication group to be deleted. This parameter is not case sensitive.
Returns:
A reference to this updated object so that method calls can be chained together.

isRetainPrimaryCluster

public Boolean isRetainPrimaryCluster()
If set to true, all of the read replicas will be deleted, but the primary cache cluster will be retained.

Returns:
If set to true, all of the read replicas will be deleted, but the primary cache cluster will be retained.

setRetainPrimaryCluster

public void setRetainPrimaryCluster(Boolean retainPrimaryCluster)
If set to true, all of the read replicas will be deleted, but the primary cache cluster will be retained.

Parameters:
retainPrimaryCluster - If set to true, all of the read replicas will be deleted, but the primary cache cluster will be retained.

withRetainPrimaryCluster

public DeleteReplicationGroupRequest withRetainPrimaryCluster(Boolean retainPrimaryCluster)
If set to true, all of the read replicas will be deleted, but the primary cache cluster will be retained.

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

Parameters:
retainPrimaryCluster - If set to true, all of the read replicas will be deleted, but the primary cache cluster will be retained.
Returns:
A reference to this updated object so that method calls can be chained together.

getRetainPrimaryCluster

public Boolean getRetainPrimaryCluster()
If set to true, all of the read replicas will be deleted, but the primary cache cluster will be retained.

Returns:
If set to true, all of the read replicas will be deleted, but the primary cache cluster will be retained.

getFinalSnapshotIdentifier

public String getFinalSnapshotIdentifier()
The name of a final cache cluster snapshot. ElastiCache creates the snapshot from the primary cluster in the replication group, rather than one of the replicas; this is to ensure that it captures the freshest data. After the final snapshot is taken, the replication group is deleted immediately afterward.

Returns:
The name of a final cache cluster snapshot. ElastiCache creates the snapshot from the primary cluster in the replication group, rather than one of the replicas; this is to ensure that it captures the freshest data. After the final snapshot is taken, the replication group is deleted immediately afterward.

setFinalSnapshotIdentifier

public void setFinalSnapshotIdentifier(String finalSnapshotIdentifier)
The name of a final cache cluster snapshot. ElastiCache creates the snapshot from the primary cluster in the replication group, rather than one of the replicas; this is to ensure that it captures the freshest data. After the final snapshot is taken, the replication group is deleted immediately afterward.

Parameters:
finalSnapshotIdentifier - The name of a final cache cluster snapshot. ElastiCache creates the snapshot from the primary cluster in the replication group, rather than one of the replicas; this is to ensure that it captures the freshest data. After the final snapshot is taken, the replication group is deleted immediately afterward.

withFinalSnapshotIdentifier

public DeleteReplicationGroupRequest withFinalSnapshotIdentifier(String finalSnapshotIdentifier)
The name of a final cache cluster snapshot. ElastiCache creates the snapshot from the primary cluster in the replication group, rather than one of the replicas; this is to ensure that it captures the freshest data. After the final snapshot is taken, the replication group is deleted immediately afterward.

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

Parameters:
finalSnapshotIdentifier - The name of a final cache cluster snapshot. ElastiCache creates the snapshot from the primary cluster in the replication group, rather than one of the replicas; this is to ensure that it captures the freshest data. After the final snapshot is taken, the replication group is deleted immediately afterward.
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.