Struct aws_sdk_ec2::operation::purchase_host_reservation::builders::PurchaseHostReservationOutputBuilder
source · #[non_exhaustive]pub struct PurchaseHostReservationOutputBuilder { /* private fields */ }Expand description
A builder for PurchaseHostReservationOutput.
Implementations§
source§impl PurchaseHostReservationOutputBuilder
impl PurchaseHostReservationOutputBuilder
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
sourcepub fn currency_code(self, input: CurrencyCodeValues) -> Self
pub fn currency_code(self, input: CurrencyCodeValues) -> Self
The currency in which the totalUpfrontPrice and totalHourlyPrice amounts are specified. At this time, the only supported currency is USD.
sourcepub fn set_currency_code(self, input: Option<CurrencyCodeValues>) -> Self
pub fn set_currency_code(self, input: Option<CurrencyCodeValues>) -> Self
The currency in which the totalUpfrontPrice and totalHourlyPrice amounts are specified. At this time, the only supported currency is USD.
sourcepub fn get_currency_code(&self) -> &Option<CurrencyCodeValues>
pub fn get_currency_code(&self) -> &Option<CurrencyCodeValues>
The currency in which the totalUpfrontPrice and totalHourlyPrice amounts are specified. At this time, the only supported currency is USD.
sourcepub fn purchase(self, input: Purchase) -> Self
pub fn purchase(self, input: Purchase) -> Self
Appends an item to purchase.
To override the contents of this collection use set_purchase.
Describes the details of the purchase.
sourcepub fn set_purchase(self, input: Option<Vec<Purchase>>) -> Self
pub fn set_purchase(self, input: Option<Vec<Purchase>>) -> Self
Describes the details of the purchase.
sourcepub fn get_purchase(&self) -> &Option<Vec<Purchase>>
pub fn get_purchase(&self) -> &Option<Vec<Purchase>>
Describes the details of the purchase.
sourcepub fn total_hourly_price(self, input: impl Into<String>) -> Self
pub fn total_hourly_price(self, input: impl Into<String>) -> Self
The total hourly price of the reservation calculated per hour.
sourcepub fn set_total_hourly_price(self, input: Option<String>) -> Self
pub fn set_total_hourly_price(self, input: Option<String>) -> Self
The total hourly price of the reservation calculated per hour.
sourcepub fn get_total_hourly_price(&self) -> &Option<String>
pub fn get_total_hourly_price(&self) -> &Option<String>
The total hourly price of the reservation calculated per hour.
sourcepub fn total_upfront_price(self, input: impl Into<String>) -> Self
pub fn total_upfront_price(self, input: impl Into<String>) -> Self
The total amount charged to your account when you purchase the reservation.
sourcepub fn set_total_upfront_price(self, input: Option<String>) -> Self
pub fn set_total_upfront_price(self, input: Option<String>) -> Self
The total amount charged to your account when you purchase the reservation.
sourcepub fn get_total_upfront_price(&self) -> &Option<String>
pub fn get_total_upfront_price(&self) -> &Option<String>
The total amount charged to your account when you purchase the reservation.
sourcepub fn build(self) -> PurchaseHostReservationOutput
pub fn build(self) -> PurchaseHostReservationOutput
Consumes the builder and constructs a PurchaseHostReservationOutput.
Trait Implementations§
source§impl Clone for PurchaseHostReservationOutputBuilder
impl Clone for PurchaseHostReservationOutputBuilder
source§fn clone(&self) -> PurchaseHostReservationOutputBuilder
fn clone(&self) -> PurchaseHostReservationOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for PurchaseHostReservationOutputBuilder
impl Default for PurchaseHostReservationOutputBuilder
source§fn default() -> PurchaseHostReservationOutputBuilder
fn default() -> PurchaseHostReservationOutputBuilder
source§impl PartialEq for PurchaseHostReservationOutputBuilder
impl PartialEq for PurchaseHostReservationOutputBuilder
source§fn eq(&self, other: &PurchaseHostReservationOutputBuilder) -> bool
fn eq(&self, other: &PurchaseHostReservationOutputBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PurchaseHostReservationOutputBuilder
Auto Trait Implementations§
impl Freeze for PurchaseHostReservationOutputBuilder
impl RefUnwindSafe for PurchaseHostReservationOutputBuilder
impl Send for PurchaseHostReservationOutputBuilder
impl Sync for PurchaseHostReservationOutputBuilder
impl Unpin for PurchaseHostReservationOutputBuilder
impl UnwindSafe for PurchaseHostReservationOutputBuilder
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