@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CanaryStatus extends Object implements Serializable, Cloneable, StructuredPojo
A structure that contains the current state of the canary.
| Constructor and Description |
|---|
CanaryStatus() |
| Modifier and Type | Method and Description |
|---|---|
CanaryStatus |
clone() |
boolean |
equals(Object obj) |
String |
getState()
The current state of the canary.
|
String |
getStateReason()
If the canary has insufficient permissions to run, this field provides more details.
|
String |
getStateReasonCode()
If the canary cannot run or has failed, this field displays the reason.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setState(String state)
The current state of the canary.
|
void |
setStateReason(String stateReason)
If the canary has insufficient permissions to run, this field provides more details.
|
void |
setStateReasonCode(String stateReasonCode)
If the canary cannot run or has failed, this field displays the reason.
|
String |
toString()
Returns a string representation of this object.
|
CanaryStatus |
withState(CanaryState state)
The current state of the canary.
|
CanaryStatus |
withState(String state)
The current state of the canary.
|
CanaryStatus |
withStateReason(String stateReason)
If the canary has insufficient permissions to run, this field provides more details.
|
CanaryStatus |
withStateReasonCode(CanaryStateReasonCode stateReasonCode)
If the canary cannot run or has failed, this field displays the reason.
|
CanaryStatus |
withStateReasonCode(String stateReasonCode)
If the canary cannot run or has failed, this field displays the reason.
|
public void setState(String state)
The current state of the canary.
state - The current state of the canary.CanaryStatepublic String getState()
The current state of the canary.
CanaryStatepublic CanaryStatus withState(String state)
The current state of the canary.
state - The current state of the canary.CanaryStatepublic CanaryStatus withState(CanaryState state)
The current state of the canary.
state - The current state of the canary.CanaryStatepublic void setStateReason(String stateReason)
If the canary has insufficient permissions to run, this field provides more details.
stateReason - If the canary has insufficient permissions to run, this field provides more details.public String getStateReason()
If the canary has insufficient permissions to run, this field provides more details.
public CanaryStatus withStateReason(String stateReason)
If the canary has insufficient permissions to run, this field provides more details.
stateReason - If the canary has insufficient permissions to run, this field provides more details.public void setStateReasonCode(String stateReasonCode)
If the canary cannot run or has failed, this field displays the reason.
stateReasonCode - If the canary cannot run or has failed, this field displays the reason.CanaryStateReasonCodepublic String getStateReasonCode()
If the canary cannot run or has failed, this field displays the reason.
CanaryStateReasonCodepublic CanaryStatus withStateReasonCode(String stateReasonCode)
If the canary cannot run or has failed, this field displays the reason.
stateReasonCode - If the canary cannot run or has failed, this field displays the reason.CanaryStateReasonCodepublic CanaryStatus withStateReasonCode(CanaryStateReasonCode stateReasonCode)
If the canary cannot run or has failed, this field displays the reason.
stateReasonCode - If the canary cannot run or has failed, this field displays the reason.CanaryStateReasonCodepublic String toString()
toString in class ObjectObject.toString()public CanaryStatus clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.