@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CanaryRunStatus extends Object implements Serializable, Cloneable, StructuredPojo
This structure contains the status information about a canary run.
| Constructor and Description |
|---|
CanaryRunStatus() |
| Modifier and Type | Method and Description |
|---|---|
CanaryRunStatus |
clone() |
boolean |
equals(Object obj) |
String |
getState()
The current state of the run.
|
String |
getStateReason()
If run of the canary failed, this field contains the reason for the error.
|
String |
getStateReasonCode()
If this value is
CANARY_FAILURE, an exception occurred in the canary code. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setState(String state)
The current state of the run.
|
void |
setStateReason(String stateReason)
If run of the canary failed, this field contains the reason for the error.
|
void |
setStateReasonCode(String stateReasonCode)
If this value is
CANARY_FAILURE, an exception occurred in the canary code. |
String |
toString()
Returns a string representation of this object.
|
CanaryRunStatus |
withState(CanaryRunState state)
The current state of the run.
|
CanaryRunStatus |
withState(String state)
The current state of the run.
|
CanaryRunStatus |
withStateReason(String stateReason)
If run of the canary failed, this field contains the reason for the error.
|
CanaryRunStatus |
withStateReasonCode(CanaryRunStateReasonCode stateReasonCode)
If this value is
CANARY_FAILURE, an exception occurred in the canary code. |
CanaryRunStatus |
withStateReasonCode(String stateReasonCode)
If this value is
CANARY_FAILURE, an exception occurred in the canary code. |
public void setState(String state)
The current state of the run.
state - The current state of the run.CanaryRunStatepublic String getState()
The current state of the run.
CanaryRunStatepublic CanaryRunStatus withState(String state)
The current state of the run.
state - The current state of the run.CanaryRunStatepublic CanaryRunStatus withState(CanaryRunState state)
The current state of the run.
state - The current state of the run.CanaryRunStatepublic void setStateReason(String stateReason)
If run of the canary failed, this field contains the reason for the error.
stateReason - If run of the canary failed, this field contains the reason for the error.public String getStateReason()
If run of the canary failed, this field contains the reason for the error.
public CanaryRunStatus withStateReason(String stateReason)
If run of the canary failed, this field contains the reason for the error.
stateReason - If run of the canary failed, this field contains the reason for the error.public void setStateReasonCode(String stateReasonCode)
If this value is CANARY_FAILURE, an exception occurred in the canary code. If this value is
EXECUTION_FAILURE, an exception occurred in CloudWatch Synthetics.
stateReasonCode - If this value is CANARY_FAILURE, an exception occurred in the canary code. If this value is
EXECUTION_FAILURE, an exception occurred in CloudWatch Synthetics.CanaryRunStateReasonCodepublic String getStateReasonCode()
If this value is CANARY_FAILURE, an exception occurred in the canary code. If this value is
EXECUTION_FAILURE, an exception occurred in CloudWatch Synthetics.
CANARY_FAILURE, an exception occurred in the canary code. If this value is
EXECUTION_FAILURE, an exception occurred in CloudWatch Synthetics.CanaryRunStateReasonCodepublic CanaryRunStatus withStateReasonCode(String stateReasonCode)
If this value is CANARY_FAILURE, an exception occurred in the canary code. If this value is
EXECUTION_FAILURE, an exception occurred in CloudWatch Synthetics.
stateReasonCode - If this value is CANARY_FAILURE, an exception occurred in the canary code. If this value is
EXECUTION_FAILURE, an exception occurred in CloudWatch Synthetics.CanaryRunStateReasonCodepublic CanaryRunStatus withStateReasonCode(CanaryRunStateReasonCode stateReasonCode)
If this value is CANARY_FAILURE, an exception occurred in the canary code. If this value is
EXECUTION_FAILURE, an exception occurred in CloudWatch Synthetics.
stateReasonCode - If this value is CANARY_FAILURE, an exception occurred in the canary code. If this value is
EXECUTION_FAILURE, an exception occurred in CloudWatch Synthetics.CanaryRunStateReasonCodepublic String toString()
toString in class ObjectObject.toString()public CanaryRunStatus clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.