Interface InstanceState.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceState.Builder,InstanceState>
,SdkBuilder<InstanceState.Builder,InstanceState>
,SdkPojo
- Enclosing class:
- InstanceState
public static interface InstanceState.Builder extends SdkPojo, CopyableBuilder<InstanceState.Builder,InstanceState>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstanceState.Builder
code(Integer code)
The state of the instance as a 16-bit unsigned integer.InstanceState.Builder
name(String name)
The current state of the instance.InstanceState.Builder
name(InstanceStateName name)
The current state of the instance.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
code
InstanceState.Builder code(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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
name
InstanceState.Builder name(String name)
The current state of the instance.
- Parameters:
name
- The current state of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceStateName
,InstanceStateName
-
name
InstanceState.Builder name(InstanceStateName name)
The current state of the instance.
- Parameters:
name
- The current state of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceStateName
,InstanceStateName
-
-