|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.InstanceState
public class InstanceState
Describes the current state of the instance.
Constructor Summary | |
---|---|
InstanceState()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Integer |
getCode()
The low byte represents the state. |
String |
getName()
The current state of the instance. |
int |
hashCode()
|
void |
setCode(Integer code)
The low byte represents the state. |
void |
setName(InstanceStateName name)
The current state of the instance. |
void |
setName(String name)
The current state of the instance. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
InstanceState |
withCode(Integer code)
The low byte represents the state. |
InstanceState |
withName(InstanceStateName name)
The current state of the instance. |
InstanceState |
withName(String name)
The current state of the instance. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InstanceState()
Method Detail |
---|
public Integer getCode()
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 void setCode(Integer code)
0
:
pending
16
:
running
32
:
shutting-down
48
:
terminated
64
:
stopping
80
:
stopped
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
public InstanceState withCode(Integer code)
0
:
pending
16
:
running
32
:
shutting-down
48
:
terminated
64
:
stopping
80
:
stopped
Returns a reference to this object so that method calls can be chained together.
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
public String getName()
Constraints:
Allowed Values: pending, running, shutting-down, terminated, stopping, stopped
InstanceStateName
public void setName(String name)
Constraints:
Allowed Values: pending, running, shutting-down, terminated, stopping, stopped
name
- The current state of the instance.InstanceStateName
public InstanceState withName(String name)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: pending, running, shutting-down, terminated, stopping, stopped
name
- The current state of the instance.
InstanceStateName
public void setName(InstanceStateName name)
Constraints:
Allowed Values: pending, running, shutting-down, terminated, stopping, stopped
name
- The current state of the instance.InstanceStateName
public InstanceState withName(InstanceStateName name)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: pending, running, shutting-down, terminated, stopping, stopped
name
- The current state of the instance.
InstanceStateName
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |