ToCopyableBuilder<InstanceState.Builder,InstanceState>@Generated("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 | Description |
|---|---|---|
static interface |
InstanceState.Builder |
| Modifier and Type | Method | Description |
|---|---|---|
static InstanceState.Builder |
builder() |
|
Integer |
code() |
The low byte represents the state.
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
String |
name() |
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() |
public 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 String name()
The current state of the instance.
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.