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<CapacityAllocationBuilder> for CapacityAllocationBuilder
impl PartialEq<CapacityAllocationBuilder> 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 ==
.