Struct aws_sdk_ec2::types::builders::InstanceCountBuilder
source · #[non_exhaustive]pub struct InstanceCountBuilder { /* private fields */ }
Expand description
A builder for InstanceCount
.
Implementations§
source§impl InstanceCountBuilder
impl InstanceCountBuilder
sourcepub fn instance_count(self, input: i32) -> Self
pub fn instance_count(self, input: i32) -> Self
The number of listed Reserved Instances in the state specified by the state
.
sourcepub fn set_instance_count(self, input: Option<i32>) -> Self
pub fn set_instance_count(self, input: Option<i32>) -> Self
The number of listed Reserved Instances in the state specified by the state
.
sourcepub fn get_instance_count(&self) -> &Option<i32>
pub fn get_instance_count(&self) -> &Option<i32>
The number of listed Reserved Instances in the state specified by the state
.
sourcepub fn state(self, input: ListingState) -> Self
pub fn state(self, input: ListingState) -> Self
The states of the listed Reserved Instances.
sourcepub fn set_state(self, input: Option<ListingState>) -> Self
pub fn set_state(self, input: Option<ListingState>) -> Self
The states of the listed Reserved Instances.
sourcepub fn get_state(&self) -> &Option<ListingState>
pub fn get_state(&self) -> &Option<ListingState>
The states of the listed Reserved Instances.
sourcepub fn build(self) -> InstanceCount
pub fn build(self) -> InstanceCount
Consumes the builder and constructs a InstanceCount
.
Trait Implementations§
source§impl Clone for InstanceCountBuilder
impl Clone for InstanceCountBuilder
source§fn clone(&self) -> InstanceCountBuilder
fn clone(&self) -> InstanceCountBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InstanceCountBuilder
impl Debug for InstanceCountBuilder
source§impl Default for InstanceCountBuilder
impl Default for InstanceCountBuilder
source§fn default() -> InstanceCountBuilder
fn default() -> InstanceCountBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for InstanceCountBuilder
impl PartialEq for InstanceCountBuilder
source§fn eq(&self, other: &InstanceCountBuilder) -> bool
fn eq(&self, other: &InstanceCountBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceCountBuilder
Auto Trait Implementations§
impl Freeze for InstanceCountBuilder
impl RefUnwindSafe for InstanceCountBuilder
impl Send for InstanceCountBuilder
impl Sync for InstanceCountBuilder
impl Unpin for InstanceCountBuilder
impl UnwindSafe for InstanceCountBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.