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 ==
.impl StructuralPartialEq for CapacityBlockOfferingBuilder
Auto Trait Implementations§
impl Freeze for CapacityBlockOfferingBuilder
impl RefUnwindSafe for CapacityBlockOfferingBuilder
impl Send for CapacityBlockOfferingBuilder
impl Sync for CapacityBlockOfferingBuilder
impl Unpin for CapacityBlockOfferingBuilder
impl UnwindSafe for CapacityBlockOfferingBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more