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 ==
.