public class FailoverDBClusterRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
FailoverDBCluster operation
.
Forces a failover for a DB cluster.
A failover for a DB cluster promotes one of the read-only instances in the DB cluster to the master DB instance (the cluster writer) and deletes the current primary instance.
Amazon Aurora will automatically fail over to a read-only instance, if one exists, when the primary instance fails. You can force a failover when you want to simulate a failure of a DB instance for testing. Because each instance in a DB cluster has its own endpoint address, you will need to clean up and re-establish any existing connections that use those endpoint addresses when the failover is complete.
For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.
NOOP
Constructor and Description |
---|
FailoverDBClusterRequest() |
Modifier and Type | Method and Description |
---|---|
FailoverDBClusterRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getDBClusterIdentifier()
A DB cluster identifier to force a failover for.
|
int |
hashCode() |
void |
setDBClusterIdentifier(String dBClusterIdentifier)
A DB cluster identifier to force a failover for.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
FailoverDBClusterRequest |
withDBClusterIdentifier(String dBClusterIdentifier)
A DB cluster identifier to force a failover for.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public String getDBClusterIdentifier()
Constraints:
Constraints:
public void setDBClusterIdentifier(String dBClusterIdentifier)
Constraints:
dBClusterIdentifier
- A DB cluster identifier to force a failover for. This parameter is not
case-sensitive. Constraints:
public FailoverDBClusterRequest withDBClusterIdentifier(String dBClusterIdentifier)
Constraints:
Returns a reference to this object so that method calls can be chained together.
dBClusterIdentifier
- A DB cluster identifier to force a failover for. This parameter is not
case-sensitive. Constraints:
public String toString()
toString
in class Object
Object.toString()
public FailoverDBClusterRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.