Struct aws_sdk_ec2::types::builders::InstanceCapacityBuilder
source · #[non_exhaustive]pub struct InstanceCapacityBuilder { /* private fields */ }
Expand description
A builder for InstanceCapacity
.
Implementations§
source§impl InstanceCapacityBuilder
impl InstanceCapacityBuilder
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 get_available_capacity(&self) -> &Option<i32>
pub fn get_available_capacity(&self) -> &Option<i32>
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 get_instance_type(&self) -> &Option<String>
pub fn get_instance_type(&self) -> &Option<String>
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 get_total_capacity(&self) -> &Option<i32>
pub fn get_total_capacity(&self) -> &Option<i32>
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
.
Trait Implementations§
source§impl Clone for InstanceCapacityBuilder
impl Clone for InstanceCapacityBuilder
source§fn clone(&self) -> InstanceCapacityBuilder
fn clone(&self) -> InstanceCapacityBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceCapacityBuilder
impl Debug for InstanceCapacityBuilder
source§impl Default for InstanceCapacityBuilder
impl Default for InstanceCapacityBuilder
source§fn default() -> InstanceCapacityBuilder
fn default() -> InstanceCapacityBuilder
source§impl PartialEq<InstanceCapacityBuilder> for InstanceCapacityBuilder
impl PartialEq<InstanceCapacityBuilder> for InstanceCapacityBuilder
source§fn eq(&self, other: &InstanceCapacityBuilder) -> bool
fn eq(&self, other: &InstanceCapacityBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.