Struct aws_sdk_ec2::types::builders::InstanceUsageBuilder
source · #[non_exhaustive]pub struct InstanceUsageBuilder { /* private fields */ }
Expand description
A builder for InstanceUsage
.
Implementations§
source§impl InstanceUsageBuilder
impl InstanceUsageBuilder
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services account that is making use of the Capacity Reservation.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The ID of the Amazon Web Services account that is making use of the Capacity Reservation.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The ID of the Amazon Web Services account that is making use of the Capacity Reservation.
sourcepub fn used_instance_count(self, input: i32) -> Self
pub fn used_instance_count(self, input: i32) -> Self
The number of instances the Amazon Web Services account currently has in the Capacity Reservation.
sourcepub fn set_used_instance_count(self, input: Option<i32>) -> Self
pub fn set_used_instance_count(self, input: Option<i32>) -> Self
The number of instances the Amazon Web Services account currently has in the Capacity Reservation.
sourcepub fn get_used_instance_count(&self) -> &Option<i32>
pub fn get_used_instance_count(&self) -> &Option<i32>
The number of instances the Amazon Web Services account currently has in the Capacity Reservation.
sourcepub fn build(self) -> InstanceUsage
pub fn build(self) -> InstanceUsage
Consumes the builder and constructs a InstanceUsage
.
Trait Implementations§
source§impl Clone for InstanceUsageBuilder
impl Clone for InstanceUsageBuilder
source§fn clone(&self) -> InstanceUsageBuilder
fn clone(&self) -> InstanceUsageBuilder
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 InstanceUsageBuilder
impl Debug for InstanceUsageBuilder
source§impl Default for InstanceUsageBuilder
impl Default for InstanceUsageBuilder
source§fn default() -> InstanceUsageBuilder
fn default() -> InstanceUsageBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<InstanceUsageBuilder> for InstanceUsageBuilder
impl PartialEq<InstanceUsageBuilder> for InstanceUsageBuilder
source§fn eq(&self, other: &InstanceUsageBuilder) -> bool
fn eq(&self, other: &InstanceUsageBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceUsageBuilder
Auto Trait Implementations§
impl RefUnwindSafe for InstanceUsageBuilder
impl Send for InstanceUsageBuilder
impl Sync for InstanceUsageBuilder
impl Unpin for InstanceUsageBuilder
impl UnwindSafe for InstanceUsageBuilder
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