Struct aws_sdk_ec2::types::builders::InstanceStateBuilder
source · #[non_exhaustive]pub struct InstanceStateBuilder { /* private fields */ }
Expand description
A builder for InstanceState
.
Implementations§
source§impl InstanceStateBuilder
impl InstanceStateBuilder
sourcepub fn code(self, input: i32) -> Self
pub fn code(self, input: i32) -> Self
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 set_code(self, input: Option<i32>) -> Self
pub fn set_code(self, input: Option<i32>) -> Self
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 get_code(&self) -> &Option<i32>
pub fn get_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, input: InstanceStateName) -> Self
pub fn name(self, input: InstanceStateName) -> Self
The current state of the instance.
sourcepub fn set_name(self, input: Option<InstanceStateName>) -> Self
pub fn set_name(self, input: Option<InstanceStateName>) -> Self
The current state of the instance.
sourcepub fn get_name(&self) -> &Option<InstanceStateName>
pub fn get_name(&self) -> &Option<InstanceStateName>
The current state of the instance.
sourcepub fn build(self) -> InstanceState
pub fn build(self) -> InstanceState
Consumes the builder and constructs a InstanceState
.
Trait Implementations§
source§impl Clone for InstanceStateBuilder
impl Clone for InstanceStateBuilder
source§fn clone(&self) -> InstanceStateBuilder
fn clone(&self) -> InstanceStateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceStateBuilder
impl Debug for InstanceStateBuilder
source§impl Default for InstanceStateBuilder
impl Default for InstanceStateBuilder
source§fn default() -> InstanceStateBuilder
fn default() -> InstanceStateBuilder
source§impl PartialEq for InstanceStateBuilder
impl PartialEq for InstanceStateBuilder
source§fn eq(&self, other: &InstanceStateBuilder) -> bool
fn eq(&self, other: &InstanceStateBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceStateBuilder
Auto Trait Implementations§
impl Freeze for InstanceStateBuilder
impl RefUnwindSafe for InstanceStateBuilder
impl Send for InstanceStateBuilder
impl Sync for InstanceStateBuilder
impl Unpin for InstanceStateBuilder
impl UnwindSafe for InstanceStateBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more