Struct aws_sdk_ec2::types::builders::CapacityAllocationBuilder
source · #[non_exhaustive]pub struct CapacityAllocationBuilder { /* private fields */ }
Expand description
A builder for CapacityAllocation
.
Implementations§
source§impl CapacityAllocationBuilder
impl CapacityAllocationBuilder
sourcepub fn allocation_type(self, input: AllocationType) -> Self
pub fn allocation_type(self, input: AllocationType) -> Self
The usage type. used
indicates that the instance capacity is in use by instances that are running in the Capacity Reservation.
sourcepub fn set_allocation_type(self, input: Option<AllocationType>) -> Self
pub fn set_allocation_type(self, input: Option<AllocationType>) -> Self
The usage type. used
indicates that the instance capacity is in use by instances that are running in the Capacity Reservation.
sourcepub fn get_allocation_type(&self) -> &Option<AllocationType>
pub fn get_allocation_type(&self) -> &Option<AllocationType>
The usage type. used
indicates that the instance capacity is in use by instances that are running in the Capacity Reservation.
sourcepub fn count(self, input: i32) -> Self
pub fn count(self, input: i32) -> Self
The amount of instance capacity associated with the usage. For example a value of 4
indicates that instance capacity for 4 instances is currently in use.
sourcepub fn set_count(self, input: Option<i32>) -> Self
pub fn set_count(self, input: Option<i32>) -> Self
The amount of instance capacity associated with the usage. For example a value of 4
indicates that instance capacity for 4 instances is currently in use.
sourcepub fn get_count(&self) -> &Option<i32>
pub fn get_count(&self) -> &Option<i32>
The amount of instance capacity associated with the usage. For example a value of 4
indicates that instance capacity for 4 instances is currently in use.
sourcepub fn build(self) -> CapacityAllocation
pub fn build(self) -> CapacityAllocation
Consumes the builder and constructs a CapacityAllocation
.
Trait Implementations§
source§impl Clone for CapacityAllocationBuilder
impl Clone for CapacityAllocationBuilder
source§fn clone(&self) -> CapacityAllocationBuilder
fn clone(&self) -> CapacityAllocationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CapacityAllocationBuilder
impl Debug for CapacityAllocationBuilder
source§impl Default for CapacityAllocationBuilder
impl Default for CapacityAllocationBuilder
source§fn default() -> CapacityAllocationBuilder
fn default() -> CapacityAllocationBuilder
source§impl PartialEq for CapacityAllocationBuilder
impl PartialEq for CapacityAllocationBuilder
source§fn eq(&self, other: &CapacityAllocationBuilder) -> bool
fn eq(&self, other: &CapacityAllocationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CapacityAllocationBuilder
Auto Trait Implementations§
impl Freeze for CapacityAllocationBuilder
impl RefUnwindSafe for CapacityAllocationBuilder
impl Send for CapacityAllocationBuilder
impl Sync for CapacityAllocationBuilder
impl Unpin for CapacityAllocationBuilder
impl UnwindSafe for CapacityAllocationBuilder
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