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 for InstanceCapacityBuilder
impl PartialEq 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 ==
.impl StructuralPartialEq for InstanceCapacityBuilder
Auto Trait Implementations§
impl Freeze for InstanceCapacityBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more