@Generated(value="software.amazon.awssdk:codegen") public final class InstanceStateChangeReason extends Object implements StructuredPojo, ToCopyableBuilder<InstanceStateChangeReason.Builder,InstanceStateChangeReason>
The details of the status change reason for the instance.
Modifier and Type | Class and Description |
---|---|
static interface |
InstanceStateChangeReason.Builder |
Modifier and Type | Method and Description |
---|---|
static InstanceStateChangeReason.Builder |
builder() |
InstanceStateChangeReasonCode |
code()
The programmable code for the state change reason.
|
String |
codeAsString()
The programmable code for the state change reason.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
message()
The status change reason description.
|
static Class<? extends InstanceStateChangeReason.Builder> |
serializableBuilderClass() |
InstanceStateChangeReason.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public InstanceStateChangeReasonCode code()
The programmable code for the state change reason.
If the service returns an enum value that is not available in the current SDK version, code
will return
InstanceStateChangeReasonCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from codeAsString()
.
InstanceStateChangeReasonCode
public String codeAsString()
The programmable code for the state change reason.
If the service returns an enum value that is not available in the current SDK version, code
will return
InstanceStateChangeReasonCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from codeAsString()
.
InstanceStateChangeReasonCode
public String message()
The status change reason description.
public InstanceStateChangeReason.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<InstanceStateChangeReason.Builder,InstanceStateChangeReason>
public static InstanceStateChangeReason.Builder builder()
public static Class<? extends InstanceStateChangeReason.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.