@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FailoverConfig extends Object implements Serializable, Cloneable, StructuredPojo
The failover configuration for an endpoint. This includes what triggers failover and what happens when it's triggered.
| Constructor and Description |
|---|
FailoverConfig() |
| Modifier and Type | Method and Description |
|---|---|
FailoverConfig |
clone() |
boolean |
equals(Object obj) |
Primary |
getPrimary()
The main Region of the endpoint.
|
Secondary |
getSecondary()
The Region that events are routed to when failover is triggered or event replication is enabled.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setPrimary(Primary primary)
The main Region of the endpoint.
|
void |
setSecondary(Secondary secondary)
The Region that events are routed to when failover is triggered or event replication is enabled.
|
String |
toString()
Returns a string representation of this object.
|
FailoverConfig |
withPrimary(Primary primary)
The main Region of the endpoint.
|
FailoverConfig |
withSecondary(Secondary secondary)
The Region that events are routed to when failover is triggered or event replication is enabled.
|
public void setPrimary(Primary primary)
The main Region of the endpoint.
primary - The main Region of the endpoint.public Primary getPrimary()
The main Region of the endpoint.
public FailoverConfig withPrimary(Primary primary)
The main Region of the endpoint.
primary - The main Region of the endpoint.public void setSecondary(Secondary secondary)
The Region that events are routed to when failover is triggered or event replication is enabled.
secondary - The Region that events are routed to when failover is triggered or event replication is enabled.public Secondary getSecondary()
The Region that events are routed to when failover is triggered or event replication is enabled.
public FailoverConfig withSecondary(Secondary secondary)
The Region that events are routed to when failover is triggered or event replication is enabled.
secondary - The Region that events are routed to when failover is triggered or event replication is enabled.public String toString()
toString in class ObjectObject.toString()public FailoverConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.