Struct aws_sdk_ec2::types::builders::CapacityBlockOfferingBuilder
source · #[non_exhaustive]pub struct CapacityBlockOfferingBuilder { /* private fields */ }
Expand description
A builder for CapacityBlockOffering
.
Implementations§
source§impl CapacityBlockOfferingBuilder
impl CapacityBlockOfferingBuilder
sourcepub fn capacity_block_offering_id(self, input: impl Into<String>) -> Self
pub fn capacity_block_offering_id(self, input: impl Into<String>) -> Self
The ID of the Capacity Block offering.
sourcepub fn set_capacity_block_offering_id(self, input: Option<String>) -> Self
pub fn set_capacity_block_offering_id(self, input: Option<String>) -> Self
The ID of the Capacity Block offering.
sourcepub fn get_capacity_block_offering_id(&self) -> &Option<String>
pub fn get_capacity_block_offering_id(&self) -> &Option<String>
The ID of the Capacity Block offering.
sourcepub fn instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
The instance type of the Capacity Block offering.
sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
The instance type of the Capacity Block offering.
sourcepub fn get_instance_type(&self) -> &Option<String>
pub fn get_instance_type(&self) -> &Option<String>
The instance type of the Capacity Block offering.
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The Availability Zone of the Capacity Block offering.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The Availability Zone of the Capacity Block offering.
sourcepub fn get_availability_zone(&self) -> &Option<String>
pub fn get_availability_zone(&self) -> &Option<String>
The Availability Zone of the Capacity Block offering.
sourcepub fn instance_count(self, input: i32) -> Self
pub fn instance_count(self, input: i32) -> Self
The number of instances in the Capacity Block offering.
sourcepub fn set_instance_count(self, input: Option<i32>) -> Self
pub fn set_instance_count(self, input: Option<i32>) -> Self
The number of instances in the Capacity Block offering.
sourcepub fn get_instance_count(&self) -> &Option<i32>
pub fn get_instance_count(&self) -> &Option<i32>
The number of instances in the Capacity Block offering.
sourcepub fn start_date(self, input: DateTime) -> Self
pub fn start_date(self, input: DateTime) -> Self
The start date of the Capacity Block offering.
sourcepub fn set_start_date(self, input: Option<DateTime>) -> Self
pub fn set_start_date(self, input: Option<DateTime>) -> Self
The start date of the Capacity Block offering.
sourcepub fn get_start_date(&self) -> &Option<DateTime>
pub fn get_start_date(&self) -> &Option<DateTime>
The start date of the Capacity Block offering.
sourcepub fn set_end_date(self, input: Option<DateTime>) -> Self
pub fn set_end_date(self, input: Option<DateTime>) -> Self
The end date of the Capacity Block offering.
sourcepub fn get_end_date(&self) -> &Option<DateTime>
pub fn get_end_date(&self) -> &Option<DateTime>
The end date of the Capacity Block offering.
sourcepub fn capacity_block_duration_hours(self, input: i32) -> Self
pub fn capacity_block_duration_hours(self, input: i32) -> Self
The amount of time of the Capacity Block reservation in hours.
sourcepub fn set_capacity_block_duration_hours(self, input: Option<i32>) -> Self
pub fn set_capacity_block_duration_hours(self, input: Option<i32>) -> Self
The amount of time of the Capacity Block reservation in hours.
sourcepub fn get_capacity_block_duration_hours(&self) -> &Option<i32>
pub fn get_capacity_block_duration_hours(&self) -> &Option<i32>
The amount of time of the Capacity Block reservation in hours.
sourcepub fn upfront_fee(self, input: impl Into<String>) -> Self
pub fn upfront_fee(self, input: impl Into<String>) -> Self
The total price to be paid up front.
sourcepub fn set_upfront_fee(self, input: Option<String>) -> Self
pub fn set_upfront_fee(self, input: Option<String>) -> Self
The total price to be paid up front.
sourcepub fn get_upfront_fee(&self) -> &Option<String>
pub fn get_upfront_fee(&self) -> &Option<String>
The total price to be paid up front.
sourcepub fn currency_code(self, input: impl Into<String>) -> Self
pub fn currency_code(self, input: impl Into<String>) -> Self
The currency of the payment for the Capacity Block.
sourcepub fn set_currency_code(self, input: Option<String>) -> Self
pub fn set_currency_code(self, input: Option<String>) -> Self
The currency of the payment for the Capacity Block.
sourcepub fn get_currency_code(&self) -> &Option<String>
pub fn get_currency_code(&self) -> &Option<String>
The currency of the payment for the Capacity Block.
sourcepub fn tenancy(self, input: CapacityReservationTenancy) -> Self
pub fn tenancy(self, input: CapacityReservationTenancy) -> Self
The tenancy of the Capacity Block.
sourcepub fn set_tenancy(self, input: Option<CapacityReservationTenancy>) -> Self
pub fn set_tenancy(self, input: Option<CapacityReservationTenancy>) -> Self
The tenancy of the Capacity Block.
sourcepub fn get_tenancy(&self) -> &Option<CapacityReservationTenancy>
pub fn get_tenancy(&self) -> &Option<CapacityReservationTenancy>
The tenancy of the Capacity Block.
sourcepub fn build(self) -> CapacityBlockOffering
pub fn build(self) -> CapacityBlockOffering
Consumes the builder and constructs a CapacityBlockOffering
.
Trait Implementations§
source§impl Clone for CapacityBlockOfferingBuilder
impl Clone for CapacityBlockOfferingBuilder
source§fn clone(&self) -> CapacityBlockOfferingBuilder
fn clone(&self) -> CapacityBlockOfferingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CapacityBlockOfferingBuilder
impl Debug for CapacityBlockOfferingBuilder
source§impl Default for CapacityBlockOfferingBuilder
impl Default for CapacityBlockOfferingBuilder
source§fn default() -> CapacityBlockOfferingBuilder
fn default() -> CapacityBlockOfferingBuilder
source§impl PartialEq for CapacityBlockOfferingBuilder
impl PartialEq for CapacityBlockOfferingBuilder
source§fn eq(&self, other: &CapacityBlockOfferingBuilder) -> bool
fn eq(&self, other: &CapacityBlockOfferingBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.