Struct aws_sdk_ec2::types::builders::AvailableCapacityBuilder
source · #[non_exhaustive]pub struct AvailableCapacityBuilder { /* private fields */ }
Expand description
A builder for AvailableCapacity
.
Implementations§
source§impl AvailableCapacityBuilder
impl AvailableCapacityBuilder
sourcepub fn available_instance_capacity(self, input: InstanceCapacity) -> Self
pub fn available_instance_capacity(self, input: InstanceCapacity) -> Self
Appends an item to available_instance_capacity
.
To override the contents of this collection use set_available_instance_capacity
.
The number of instances that can be launched onto the Dedicated Host depending on the host's available capacity. For Dedicated Hosts that support multiple instance types, this parameter represents the number of instances for each instance size that is supported on the host.
sourcepub fn set_available_instance_capacity(
self,
input: Option<Vec<InstanceCapacity>>
) -> Self
pub fn set_available_instance_capacity( self, input: Option<Vec<InstanceCapacity>> ) -> Self
The number of instances that can be launched onto the Dedicated Host depending on the host's available capacity. For Dedicated Hosts that support multiple instance types, this parameter represents the number of instances for each instance size that is supported on the host.
sourcepub fn get_available_instance_capacity(&self) -> &Option<Vec<InstanceCapacity>>
pub fn get_available_instance_capacity(&self) -> &Option<Vec<InstanceCapacity>>
The number of instances that can be launched onto the Dedicated Host depending on the host's available capacity. For Dedicated Hosts that support multiple instance types, this parameter represents the number of instances for each instance size that is supported on the host.
sourcepub fn available_v_cpus(self, input: i32) -> Self
pub fn available_v_cpus(self, input: i32) -> Self
The number of vCPUs available for launching instances onto the Dedicated Host.
sourcepub fn set_available_v_cpus(self, input: Option<i32>) -> Self
pub fn set_available_v_cpus(self, input: Option<i32>) -> Self
The number of vCPUs available for launching instances onto the Dedicated Host.
sourcepub fn get_available_v_cpus(&self) -> &Option<i32>
pub fn get_available_v_cpus(&self) -> &Option<i32>
The number of vCPUs available for launching instances onto the Dedicated Host.
sourcepub fn build(self) -> AvailableCapacity
pub fn build(self) -> AvailableCapacity
Consumes the builder and constructs a AvailableCapacity
.
Trait Implementations§
source§impl Clone for AvailableCapacityBuilder
impl Clone for AvailableCapacityBuilder
source§fn clone(&self) -> AvailableCapacityBuilder
fn clone(&self) -> AvailableCapacityBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AvailableCapacityBuilder
impl Debug for AvailableCapacityBuilder
source§impl Default for AvailableCapacityBuilder
impl Default for AvailableCapacityBuilder
source§fn default() -> AvailableCapacityBuilder
fn default() -> AvailableCapacityBuilder
source§impl PartialEq<AvailableCapacityBuilder> for AvailableCapacityBuilder
impl PartialEq<AvailableCapacityBuilder> for AvailableCapacityBuilder
source§fn eq(&self, other: &AvailableCapacityBuilder) -> bool
fn eq(&self, other: &AvailableCapacityBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.