Struct aws_sdk_ec2::model::capacity_allocation::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CapacityAllocation
.
Implementations§
source§impl 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
.