@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceState extends Object implements Serializable, Cloneable
Describes the current state of an instance.
| Constructor and Description |
|---|
InstanceState() |
| Modifier and Type | Method and Description |
|---|---|
InstanceState |
clone() |
boolean |
equals(Object obj) |
Integer |
getCode()
The state of the instance as a 16-bit unsigned integer.
|
String |
getName()
The current state of the instance.
|
int |
hashCode() |
void |
setCode(Integer code)
The state of the instance as 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.
|
InstanceState |
withCode(Integer code)
The state of the instance as 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.
|
public void setCode(Integer code)
The state of the instance as a 16-bit unsigned integer.
The high byte is all of the bits between 2^8 and (2^16)-1, which equals decimal values between 256 and 65,535. These numerical values are used for internal purposes and should be ignored.
The low byte is all of the bits between 2^0 and (2^8)-1, which equals decimal values between 0 and 255.
The valid values for instance-state-code will all be in the range of the low byte and they are:
0 : pending
16 : running
32 : shutting-down
48 : terminated
64 : stopping
80 : stopped
You can ignore the high byte value by zeroing out all of the bits above 2^8 or 256 in decimal.
code - The state of the instance as a 16-bit unsigned integer.
The high byte is all of the bits between 2^8 and (2^16)-1, which equals decimal values between 256 and 65,535. These numerical values are used for internal purposes and should be ignored.
The low byte is all of the bits between 2^0 and (2^8)-1, which equals decimal values between 0 and 255.
The valid values for instance-state-code will all be in the range of the low byte and they are:
0 : pending
16 : running
32 : shutting-down
48 : terminated
64 : stopping
80 : stopped
You can ignore the high byte value by zeroing out all of the bits above 2^8 or 256 in decimal.
public Integer getCode()
The state of the instance as a 16-bit unsigned integer.
The high byte is all of the bits between 2^8 and (2^16)-1, which equals decimal values between 256 and 65,535. These numerical values are used for internal purposes and should be ignored.
The low byte is all of the bits between 2^0 and (2^8)-1, which equals decimal values between 0 and 255.
The valid values for instance-state-code will all be in the range of the low byte and they are:
0 : pending
16 : running
32 : shutting-down
48 : terminated
64 : stopping
80 : stopped
You can ignore the high byte value by zeroing out all of the bits above 2^8 or 256 in decimal.
The high byte is all of the bits between 2^8 and (2^16)-1, which equals decimal values between 256 and 65,535. These numerical values are used for internal purposes and should be ignored.
The low byte is all of the bits between 2^0 and (2^8)-1, which equals decimal values between 0 and 255.
The valid values for instance-state-code will all be in the range of the low byte and they are:
0 : pending
16 : running
32 : shutting-down
48 : terminated
64 : stopping
80 : stopped
You can ignore the high byte value by zeroing out all of the bits above 2^8 or 256 in decimal.
public InstanceState withCode(Integer code)
The state of the instance as a 16-bit unsigned integer.
The high byte is all of the bits between 2^8 and (2^16)-1, which equals decimal values between 256 and 65,535. These numerical values are used for internal purposes and should be ignored.
The low byte is all of the bits between 2^0 and (2^8)-1, which equals decimal values between 0 and 255.
The valid values for instance-state-code will all be in the range of the low byte and they are:
0 : pending
16 : running
32 : shutting-down
48 : terminated
64 : stopping
80 : stopped
You can ignore the high byte value by zeroing out all of the bits above 2^8 or 256 in decimal.
code - The state of the instance as a 16-bit unsigned integer.
The high byte is all of the bits between 2^8 and (2^16)-1, which equals decimal values between 256 and 65,535. These numerical values are used for internal purposes and should be ignored.
The low byte is all of the bits between 2^0 and (2^8)-1, which equals decimal values between 0 and 255.
The valid values for instance-state-code will all be in the range of the low byte and they are:
0 : pending
16 : running
32 : shutting-down
48 : terminated
64 : stopping
80 : stopped
You can ignore the high byte value by zeroing out all of the bits above 2^8 or 256 in decimal.
public void setName(String name)
The current state of the instance.
name - The current state of the instance.InstanceStateNamepublic String getName()
The current state of the instance.
InstanceStateNamepublic InstanceState withName(String name)
The current state of the instance.
name - The current state of the instance.InstanceStateNamepublic void setName(InstanceStateName name)
The current state of the instance.
name - The current state of the instance.InstanceStateNamepublic InstanceState withName(InstanceStateName name)
The current state of the instance.
name - The current state of the instance.InstanceStateNamepublic String toString()
toString in class ObjectObject.toString()public InstanceState clone()