Struct aws_sdk_ec2::model::instance_usage::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for InstanceUsage
.
Implementations§
source§impl Builder
impl Builder
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 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 build(self) -> InstanceUsage
pub fn build(self) -> InstanceUsage
Consumes the builder and constructs a InstanceUsage
.