Struct aws_sdk_ec2::model::InstanceState
source · [−]#[non_exhaustive]pub struct InstanceState { /* private fields */ }
Expand description
Describes the current state of an instance.
Implementations
sourceimpl InstanceState
impl InstanceState
sourcepub fn code(&self) -> Option<i32>
pub fn code(&self) -> Option<i32>
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.
sourcepub fn name(&self) -> Option<&InstanceStateName>
pub fn name(&self) -> Option<&InstanceStateName>
The current state of the instance.
sourceimpl InstanceState
impl InstanceState
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture InstanceState
.
Trait Implementations
sourceimpl Clone for InstanceState
impl Clone for InstanceState
sourcefn clone(&self) -> InstanceState
fn clone(&self) -> InstanceState
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more