Struct aws_sdk_ec2::model::InstanceCapacity
source · [−]#[non_exhaustive]pub struct InstanceCapacity { /* private fields */ }
Expand description
Information about the number of instances that can be launched onto the Dedicated Host.
Implementations
sourceimpl InstanceCapacity
impl InstanceCapacity
sourcepub fn available_capacity(&self) -> Option<i32>
pub fn 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) -> Option<&str>
pub fn instance_type(&self) -> Option<&str>
The instance type supported by the Dedicated Host.
sourcepub fn total_capacity(&self) -> Option<i32>
pub fn 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.
sourceimpl InstanceCapacity
impl InstanceCapacity
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture InstanceCapacity
.
Trait Implementations
sourceimpl Clone for InstanceCapacity
impl Clone for InstanceCapacity
sourcefn clone(&self) -> InstanceCapacity
fn clone(&self) -> InstanceCapacity
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InstanceCapacity
impl Debug for InstanceCapacity
sourceimpl PartialEq<InstanceCapacity> for InstanceCapacity
impl PartialEq<InstanceCapacity> for InstanceCapacity
sourcefn eq(&self, other: &InstanceCapacity) -> bool
fn eq(&self, other: &InstanceCapacity) -> bool
impl StructuralPartialEq for InstanceCapacity
Auto Trait Implementations
impl RefUnwindSafe for InstanceCapacity
impl Send for InstanceCapacity
impl Sync for InstanceCapacity
impl Unpin for InstanceCapacity
impl UnwindSafe for InstanceCapacity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more