Struct aws_sdk_ec2::model::capacity_allocation::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for CapacityAllocation
.
Implementations
sourceimpl Builder
impl Builder
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 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 build(self) -> CapacityAllocation
pub fn build(self) -> CapacityAllocation
Consumes the builder and constructs a CapacityAllocation
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more