@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.CanaryState
public String getState()
The current state of the canary.
CanaryState
public CanaryStatus withState(String state)
The current state of the canary.
state
- The current state of the canary.CanaryState
public CanaryStatus withState(CanaryState state)
The current state of the canary.
state
- The current state of the canary.CanaryState
public 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.CanaryStateReasonCode
public String getStateReasonCode()
If the canary cannot run or has failed, this field displays the reason.
CanaryStateReasonCode
public 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.CanaryStateReasonCode
public 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.CanaryStateReasonCode
public String toString()
toString
in class Object
Object.toString()
public CanaryStatus clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.