@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.CanaryRunState
public String getState()
The current state of the run.
CanaryRunState
public CanaryRunStatus withState(String state)
The current state of the run.
state
- The current state of the run.CanaryRunState
public CanaryRunStatus withState(CanaryRunState state)
The current state of the run.
state
- The current state of the run.CanaryRunState
public 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.CanaryRunStateReasonCode
public 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.CanaryRunStateReasonCode
public 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.CanaryRunStateReasonCode
public 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.CanaryRunStateReasonCode
public String toString()
toString
in class Object
Object.toString()
public CanaryRunStatus clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.