@Generated(value="software.amazon.awssdk:codegen") public class InstanceState extends Object implements ToCopyableBuilder<InstanceState.Builder,InstanceState>
Describes the current state of an instance.
| Modifier and Type | Class and Description |
|---|---|
static interface |
InstanceState.Builder |
| Modifier and Type | Method and Description |
|---|---|
static InstanceState.Builder |
builder() |
Integer |
code()
The low byte represents the state.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
InstanceStateName |
name()
The current state of the instance.
|
String |
nameAsString()
The current state of the instance.
|
static Class<? extends InstanceState.Builder> |
serializableBuilderClass() |
InstanceState.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copypublic Integer code()
The low byte represents the state. The high byte is an opaque internal value and should be ignored.
0 : pending
16 : running
32 : shutting-down
48 : terminated
64 : stopping
80 : stopped
0 : pending
16 : running
32 : shutting-down
48 : terminated
64 : stopping
80 : stopped
public InstanceStateName name()
The current state of the instance.
If the service returns an enum value that is not available in the current SDK version, name will return
InstanceStateName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
nameAsString().
InstanceStateNamepublic String nameAsString()
The current state of the instance.
If the service returns an enum value that is not available in the current SDK version, name will return
InstanceStateName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
nameAsString().
InstanceStateNamepublic InstanceState.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<InstanceState.Builder,InstanceState>public static InstanceState.Builder builder()
public static Class<? extends InstanceState.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.