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 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
.
Trait Implementations§
source§impl Clone for InstanceCapacityBuilder
impl Clone for InstanceCapacityBuilder
source§fn clone(&self) -> InstanceCapacityBuilder
fn clone(&self) -> InstanceCapacityBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
source§impl PartialEq<InstanceCapacityBuilder> for InstanceCapacityBuilder
impl PartialEq<InstanceCapacityBuilder> for InstanceCapacityBuilder
source§fn eq(&self, other: &InstanceCapacityBuilder) -> bool
fn eq(&self, other: &InstanceCapacityBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceCapacityBuilder
Auto Trait Implementations§
impl RefUnwindSafe for InstanceCapacityBuilder
impl Send for InstanceCapacityBuilder
impl Sync for InstanceCapacityBuilder
impl Unpin for InstanceCapacityBuilder
impl UnwindSafe for InstanceCapacityBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more