public class InstanceState
extends java.lang.Object
implements java.io.Serializable
Represents the state of an Amazon EC2 instance.
| コンストラクタと説明 |
|---|
InstanceState() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getCode()
A 16-bit unsigned integer.
|
java.lang.String |
getName()
The current state of the instance.
|
int |
hashCode() |
void |
setCode(java.lang.Integer code)
A 16-bit unsigned integer.
|
void |
setName(InstanceStateName name)
The current state of the instance.
|
void |
setName(java.lang.String name)
The current state of the instance.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceState |
withCode(java.lang.Integer code)
A 16-bit unsigned integer.
|
InstanceState |
withName(InstanceStateName name)
The current state of the instance.
|
InstanceState |
withName(java.lang.String name)
The current state of the instance.
|
public java.lang.Integer getCode()
public void setCode(java.lang.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(java.lang.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 java.lang.String getName()
Constraints:
Allowed Values: pending, running, shutting-down, terminated, stopping, stopped
InstanceStateNamepublic void setName(java.lang.String name)
Constraints:
Allowed Values: pending, running, shutting-down, terminated, stopping, stopped
name - The current state of the instance.InstanceStateNamepublic InstanceState withName(java.lang.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 java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object