@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CanaryRunStatus.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CanaryRunStatus.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends CanaryRunStatus.Builder> |
serializableBuilderClass() |
CanaryRunState |
state()
The current state of the run.
|
String |
stateAsString()
The current state of the run.
|
String |
stateReason()
If run of the canary failed, this field contains the reason for the error.
|
CanaryRunStateReasonCode |
stateReasonCode()
If this value is
CANARY_FAILURE, an exception occurred in the canary code. |
String |
stateReasonCodeAsString()
If this value is
CANARY_FAILURE, an exception occurred in the canary code. |
CanaryRunStatus.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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, state will return
CanaryRunState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
CanaryRunStatepublic 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, state will return
CanaryRunState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
CanaryRunStatepublic final String stateReason()
If run of the canary failed, this field contains the reason for the error.
public final 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.
If the service returns an enum value that is not available in the current SDK version, stateReasonCode
will return CanaryRunStateReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from stateReasonCodeAsString().
CANARY_FAILURE, an exception occurred in the canary code. If this value is
EXECUTION_FAILURE, an exception occurred in CloudWatch Synthetics.CanaryRunStateReasonCodepublic final String stateReasonCodeAsString()
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.
If the service returns an enum value that is not available in the current SDK version, stateReasonCode
will return CanaryRunStateReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from stateReasonCodeAsString().
CANARY_FAILURE, an exception occurred in the canary code. If this value is
EXECUTION_FAILURE, an exception occurred in CloudWatch Synthetics.CanaryRunStateReasonCodepublic CanaryRunStatus.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CanaryRunStatus.Builder,CanaryRunStatus>public static CanaryRunStatus.Builder builder()
public static Class<? extends CanaryRunStatus.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.