Struct aws_sdk_ec2::model::available_capacity::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AvailableCapacity
.
Implementations§
source§impl Builder
impl Builder
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 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 build(self) -> AvailableCapacity
pub fn build(self) -> AvailableCapacity
Consumes the builder and constructs a AvailableCapacity
.