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 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§
source§impl Clone for CapacityAllocationBuilder
impl Clone for CapacityAllocationBuilder
source§fn clone(&self) -> CapacityAllocationBuilder
fn clone(&self) -> CapacityAllocationBuilder
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 CapacityAllocationBuilder
impl Debug for CapacityAllocationBuilder
source§impl Default for CapacityAllocationBuilder
impl Default for CapacityAllocationBuilder
source§fn default() -> CapacityAllocationBuilder
fn default() -> CapacityAllocationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<CapacityAllocationBuilder> for CapacityAllocationBuilder
impl PartialEq<CapacityAllocationBuilder> for CapacityAllocationBuilder
source§fn eq(&self, other: &CapacityAllocationBuilder) -> bool
fn eq(&self, other: &CapacityAllocationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CapacityAllocationBuilder
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more