public class DeleteReplicationGroupRequest extends AmazonWebServiceRequest implements Serializable
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.
NOOP
Constructor and Description |
---|
DeleteReplicationGroupRequest() |
Modifier and Type | Method and Description |
---|---|
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.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getReplicationGroupId()
public void setReplicationGroupId(String replicationGroupId)
replicationGroupId
- The identifier for the replication group to be deleted. This parameter
is not case sensitive.public DeleteReplicationGroupRequest withReplicationGroupId(String replicationGroupId)
Returns a reference to this object so that method calls can be chained together.
replicationGroupId
- The identifier for the replication group to be deleted. This parameter
is not case sensitive.public Boolean isRetainPrimaryCluster()
public void setRetainPrimaryCluster(Boolean retainPrimaryCluster)
retainPrimaryCluster
- If set to true, all of the read replicas will be deleted, but
the primary cache cluster will be retained.public DeleteReplicationGroupRequest withRetainPrimaryCluster(Boolean retainPrimaryCluster)
Returns a reference to this object so that method calls can be chained together.
retainPrimaryCluster
- If set to true, all of the read replicas will be deleted, but
the primary cache cluster will be retained.public Boolean getRetainPrimaryCluster()
public String getFinalSnapshotIdentifier()
public void setFinalSnapshotIdentifier(String finalSnapshotIdentifier)
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.public DeleteReplicationGroupRequest withFinalSnapshotIdentifier(String finalSnapshotIdentifier)
Returns a reference to this object so that method calls can be chained together.
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.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.