Struct aws_sdk_ec2::model::instance_capacity::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for InstanceCapacity
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn available_capacity(self, input: i32) -> Self
pub fn available_capacity(self, input: i32) -> Self
The number of instances that can be launched onto the Dedicated Host based on the host's available capacity.
sourcepub fn set_available_capacity(self, input: Option<i32>) -> Self
pub fn set_available_capacity(self, input: Option<i32>) -> Self
The number of instances that can be launched onto the Dedicated Host based on the host's available capacity.
sourcepub fn instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
The instance type supported by the Dedicated Host.
sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
The instance type supported by the Dedicated Host.
sourcepub fn total_capacity(self, input: i32) -> Self
pub fn total_capacity(self, input: i32) -> Self
The total number of instances that can be launched onto the Dedicated Host if there are no instances running on it.
sourcepub fn set_total_capacity(self, input: Option<i32>) -> Self
pub fn set_total_capacity(self, input: Option<i32>) -> Self
The total number of instances that can be launched onto the Dedicated Host if there are no instances running on it.
sourcepub fn build(self) -> InstanceCapacity
pub fn build(self) -> InstanceCapacity
Consumes the builder and constructs a InstanceCapacity
.