@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CanaryStatus.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CanaryStatus.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 CanaryStatus.Builder> |
serializableBuilderClass() |
CanaryState |
state()
The current state of the canary.
|
String |
stateAsString()
The current state of the canary.
|
String |
stateReason()
If the canary has insufficient permissions to run, this field provides more details.
|
CanaryStateReasonCode |
stateReasonCode()
If the canary cannot run or has failed, this field displays the reason.
|
String |
stateReasonCodeAsString()
If the canary cannot run or has failed, this field displays the reason.
|
CanaryStatus.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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, state will return
CanaryState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
CanaryStatepublic 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, state will return
CanaryState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
CanaryStatepublic final String stateReason()
If the canary has insufficient permissions to run, this field provides more details.
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, stateReasonCode
will return CanaryStateReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from stateReasonCodeAsString().
CanaryStateReasonCodepublic 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, stateReasonCode
will return CanaryStateReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from stateReasonCodeAsString().
CanaryStateReasonCodepublic CanaryStatus.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CanaryStatus.Builder,CanaryStatus>public static CanaryStatus.Builder builder()
public static Class<? extends CanaryStatus.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.