@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PromoteRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Promotes a data replication replica broker to the primary broker role.
NOOP
Constructor and Description |
---|
PromoteRequest() |
Modifier and Type | Method and Description |
---|---|
PromoteRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getBrokerId()
The unique ID that Amazon MQ generates for the broker.
|
String |
getMode()
The Promote mode requested.
|
int |
hashCode() |
void |
setBrokerId(String brokerId)
The unique ID that Amazon MQ generates for the broker.
|
void |
setMode(String mode)
The Promote mode requested.
|
String |
toString()
Returns a string representation of this object.
|
PromoteRequest |
withBrokerId(String brokerId)
The unique ID that Amazon MQ generates for the broker.
|
PromoteRequest |
withMode(PromoteMode mode)
The Promote mode requested.
|
PromoteRequest |
withMode(String mode)
The Promote mode requested.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setBrokerId(String brokerId)
The unique ID that Amazon MQ generates for the broker.
brokerId
- The unique ID that Amazon MQ generates for the broker.public String getBrokerId()
The unique ID that Amazon MQ generates for the broker.
public PromoteRequest withBrokerId(String brokerId)
The unique ID that Amazon MQ generates for the broker.
brokerId
- The unique ID that Amazon MQ generates for the broker.public void setMode(String mode)
The Promote mode requested. Note: Valid values for the parameter are SWITCHOVER, FAILOVER.
mode
- The Promote mode requested. Note: Valid values for the parameter are SWITCHOVER, FAILOVER.PromoteMode
public String getMode()
The Promote mode requested. Note: Valid values for the parameter are SWITCHOVER, FAILOVER.
PromoteMode
public PromoteRequest withMode(String mode)
The Promote mode requested. Note: Valid values for the parameter are SWITCHOVER, FAILOVER.
mode
- The Promote mode requested. Note: Valid values for the parameter are SWITCHOVER, FAILOVER.PromoteMode
public PromoteRequest withMode(PromoteMode mode)
The Promote mode requested. Note: Valid values for the parameter are SWITCHOVER, FAILOVER.
mode
- The Promote mode requested. Note: Valid values for the parameter are SWITCHOVER, FAILOVER.PromoteMode
public String toString()
toString
in class Object
Object.toString()
public PromoteRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()