Struct aws_sdk_ec2::types::builders::AvailableCapacityBuilder
source · #[non_exhaustive]pub struct AvailableCapacityBuilder { /* private fields */ }
Expand description
A builder for AvailableCapacity
.
Implementations§
source§impl AvailableCapacityBuilder
impl AvailableCapacityBuilder
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 get_available_instance_capacity(&self) -> &Option<Vec<InstanceCapacity>>
pub fn get_available_instance_capacity(&self) -> &Option<Vec<InstanceCapacity>>
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 get_available_v_cpus(&self) -> &Option<i32>
pub fn get_available_v_cpus(&self) -> &Option<i32>
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
.
Trait Implementations§
source§impl Clone for AvailableCapacityBuilder
impl Clone for AvailableCapacityBuilder
source§fn clone(&self) -> AvailableCapacityBuilder
fn clone(&self) -> AvailableCapacityBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AvailableCapacityBuilder
impl Debug for AvailableCapacityBuilder
source§impl Default for AvailableCapacityBuilder
impl Default for AvailableCapacityBuilder
source§fn default() -> AvailableCapacityBuilder
fn default() -> AvailableCapacityBuilder
source§impl PartialEq for AvailableCapacityBuilder
impl PartialEq for AvailableCapacityBuilder
source§fn eq(&self, other: &AvailableCapacityBuilder) -> bool
fn eq(&self, other: &AvailableCapacityBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AvailableCapacityBuilder
Auto Trait Implementations§
impl Freeze for AvailableCapacityBuilder
impl RefUnwindSafe for AvailableCapacityBuilder
impl Send for AvailableCapacityBuilder
impl Sync for AvailableCapacityBuilder
impl Unpin for AvailableCapacityBuilder
impl UnwindSafe for AvailableCapacityBuilder
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