Class CanaryStatus
- java.lang.Object
-
- software.amazon.awssdk.services.synthetics.model.CanaryStatus
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CanaryStatus.Builder,CanaryStatus>
@Generated("software.amazon.awssdk:codegen") public final class CanaryStatus extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CanaryStatus.Builder,CanaryStatus>
A structure that contains the current state of the canary.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCanaryStatus.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CanaryStatus.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends CanaryStatus.Builder>serializableBuilderClass()CanaryStatestate()The current state of the canary.StringstateAsString()The current state of the canary.StringstateReason()If the canary has insufficient permissions to run, this field provides more details.CanaryStateReasonCodestateReasonCode()If the canary cannot run or has failed, this field displays the reason.StringstateReasonCodeAsString()If the canary cannot run or has failed, this field displays the reason.CanaryStatus.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 CanaryState state()
The current state of the canary.
If the service returns an enum value that is not available in the current SDK version,
statewill returnCanaryState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current state of the canary.
- See Also:
CanaryState
-
stateAsString
public final String stateAsString()
The current state of the canary.
If the service returns an enum value that is not available in the current SDK version,
statewill returnCanaryState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current state of the canary.
- See Also:
CanaryState
-
stateReason
public final String stateReason()
If the canary has insufficient permissions to run, this field provides more details.
- Returns:
- If the canary has insufficient permissions to run, this field provides more details.
-
stateReasonCode
public final CanaryStateReasonCode stateReasonCode()
If the canary cannot run or has failed, this field displays the reason.
If the service returns an enum value that is not available in the current SDK version,
stateReasonCodewill returnCanaryStateReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateReasonCodeAsString().- Returns:
- If the canary cannot run or has failed, this field displays the reason.
- See Also:
CanaryStateReasonCode
-
stateReasonCodeAsString
public final String stateReasonCodeAsString()
If the canary cannot run or has failed, this field displays the reason.
If the service returns an enum value that is not available in the current SDK version,
stateReasonCodewill returnCanaryStateReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateReasonCodeAsString().- Returns:
- If the canary cannot run or has failed, this field displays the reason.
- See Also:
CanaryStateReasonCode
-
toBuilder
public CanaryStatus.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CanaryStatus.Builder,CanaryStatus>
-
builder
public static CanaryStatus.Builder builder()
-
serializableBuilderClass
public static Class<? extends CanaryStatus.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.
-
-