Class CanaryRunStatus
- java.lang.Object
-
- software.amazon.awssdk.services.synthetics.model.CanaryRunStatus
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CanaryRunStatus.Builder,CanaryRunStatus>
@Generated("software.amazon.awssdk:codegen") public final class CanaryRunStatus extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CanaryRunStatus.Builder,CanaryRunStatus>
This structure contains the status information about a canary run.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCanaryRunStatus.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CanaryRunStatus.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends CanaryRunStatus.Builder>serializableBuilderClass()CanaryRunStatestate()The current state of the run.StringstateAsString()The current state of the run.StringstateReason()If run of the canary failed, this field contains the reason for the error.CanaryRunStateReasonCodestateReasonCode()If this value isCANARY_FAILURE, an exception occurred in the canary code.StringstateReasonCodeAsString()If this value isCANARY_FAILURE, an exception occurred in the canary code.CanaryRunStatus.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
state
public final CanaryRunState state()
The current state of the run.
If the service returns an enum value that is not available in the current SDK version,
statewill returnCanaryRunState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current state of the run.
- See Also:
CanaryRunState
-
stateAsString
public final String stateAsString()
The current state of the run.
If the service returns an enum value that is not available in the current SDK version,
statewill returnCanaryRunState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current state of the run.
- See Also:
CanaryRunState
-
stateReason
public final String stateReason()
If run of the canary failed, this field contains the reason for the error.
- Returns:
- If run of the canary failed, this field contains the reason for the error.
-
stateReasonCode
public final CanaryRunStateReasonCode stateReasonCode()
If this value is
CANARY_FAILURE, an exception occurred in the canary code. If this value isEXECUTION_FAILURE, an exception occurred in CloudWatch Synthetics.If the service returns an enum value that is not available in the current SDK version,
stateReasonCodewill returnCanaryRunStateReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateReasonCodeAsString().- Returns:
- If this value is
CANARY_FAILURE, an exception occurred in the canary code. If this value isEXECUTION_FAILURE, an exception occurred in CloudWatch Synthetics. - See Also:
CanaryRunStateReasonCode
-
stateReasonCodeAsString
public final String stateReasonCodeAsString()
If this value is
CANARY_FAILURE, an exception occurred in the canary code. If this value isEXECUTION_FAILURE, an exception occurred in CloudWatch Synthetics.If the service returns an enum value that is not available in the current SDK version,
stateReasonCodewill returnCanaryRunStateReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateReasonCodeAsString().- Returns:
- If this value is
CANARY_FAILURE, an exception occurred in the canary code. If this value isEXECUTION_FAILURE, an exception occurred in CloudWatch Synthetics. - See Also:
CanaryRunStateReasonCode
-
toBuilder
public CanaryRunStatus.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CanaryRunStatus.Builder,CanaryRunStatus>
-
builder
public static CanaryRunStatus.Builder builder()
-
serializableBuilderClass
public static Class<? extends CanaryRunStatus.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-