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§
source§impl 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.
source§impl InstanceCapacity
impl InstanceCapacity
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture InstanceCapacity
.
Trait Implementations§
source§impl Clone for InstanceCapacity
impl Clone for InstanceCapacity
source§fn clone(&self) -> InstanceCapacity
fn clone(&self) -> InstanceCapacity
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 InstanceCapacity
impl Debug for InstanceCapacity
source§impl PartialEq<InstanceCapacity> for InstanceCapacity
impl PartialEq<InstanceCapacity> for InstanceCapacity
source§fn eq(&self, other: &InstanceCapacity) -> bool
fn eq(&self, other: &InstanceCapacity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.