|
|||||||
| 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
Represents the state of an Amazon EC2 instance.
| Constructor Summary | |
|---|---|
InstanceState()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Integer |
getCode()
A 16-bit unsigned integer. |
String |
getName()
The current state of the instance. |
int |
hashCode()
|
void |
setCode(Integer code)
A 16-bit unsigned integer. |
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)
A 16-bit unsigned integer. |
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 |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InstanceState()
| Method Detail |
|---|
public Integer getCode()
public void setCode(Integer code)
code - A 16-bit unsigned integer. The high byte is an opaque internal value
and should be ignored. The low byte is set based on the state
represented.public InstanceState withCode(Integer code)
Returns a reference to this object so that method calls can be chained together.
code - A 16-bit unsigned integer. The high byte is an opaque internal value
and should be ignored. The low byte is set based on the state
represented.
public String getName()
Constraints:
Allowed Values: pending, running, shutting-down, terminated, stopping, stopped
InstanceStateNamepublic void setName(String name)
Constraints:
Allowed Values: pending, running, shutting-down, terminated, stopping, stopped
name - The current state of the instance.InstanceStateNamepublic 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.
InstanceStateNamepublic void setName(InstanceStateName name)
Constraints:
Allowed Values: pending, running, shutting-down, terminated, stopping, stopped
name - The current state of the instance.InstanceStateNamepublic 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.
InstanceStateNamepublic String toString()
toString in class ObjectObject.toString()public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||