Struct aws_sdk_ec2::operation::get_host_reservation_purchase_preview::builders::GetHostReservationPurchasePreviewOutputBuilder
source · #[non_exhaustive]pub struct GetHostReservationPurchasePreviewOutputBuilder { /* private fields */ }
Expand description
A builder for GetHostReservationPurchasePreviewOutput
.
Implementations§
source§impl GetHostReservationPurchasePreviewOutputBuilder
impl GetHostReservationPurchasePreviewOutputBuilder
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
.
The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.
sourcepub fn set_purchase(self, input: Option<Vec<Purchase>>) -> Self
pub fn set_purchase(self, input: Option<Vec<Purchase>>) -> Self
The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.
sourcepub fn get_purchase(&self) -> &Option<Vec<Purchase>>
pub fn get_purchase(&self) -> &Option<Vec<Purchase>>
The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.
sourcepub fn total_hourly_price(self, input: impl Into<String>) -> Self
pub fn total_hourly_price(self, input: impl Into<String>) -> Self
The potential total hourly price of the reservation 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 potential total hourly price of the reservation per hour.
sourcepub fn get_total_hourly_price(&self) -> &Option<String>
pub fn get_total_hourly_price(&self) -> &Option<String>
The potential total hourly price of the reservation 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 potential total upfront price. This is billed immediately.
sourcepub fn set_total_upfront_price(self, input: Option<String>) -> Self
pub fn set_total_upfront_price(self, input: Option<String>) -> Self
The potential total upfront price. This is billed immediately.
sourcepub fn get_total_upfront_price(&self) -> &Option<String>
pub fn get_total_upfront_price(&self) -> &Option<String>
The potential total upfront price. This is billed immediately.
sourcepub fn build(self) -> GetHostReservationPurchasePreviewOutput
pub fn build(self) -> GetHostReservationPurchasePreviewOutput
Consumes the builder and constructs a GetHostReservationPurchasePreviewOutput
.
Trait Implementations§
source§impl Clone for GetHostReservationPurchasePreviewOutputBuilder
impl Clone for GetHostReservationPurchasePreviewOutputBuilder
source§fn clone(&self) -> GetHostReservationPurchasePreviewOutputBuilder
fn clone(&self) -> GetHostReservationPurchasePreviewOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetHostReservationPurchasePreviewOutputBuilder
impl Default for GetHostReservationPurchasePreviewOutputBuilder
source§fn default() -> GetHostReservationPurchasePreviewOutputBuilder
fn default() -> GetHostReservationPurchasePreviewOutputBuilder
source§impl PartialEq<GetHostReservationPurchasePreviewOutputBuilder> for GetHostReservationPurchasePreviewOutputBuilder
impl PartialEq<GetHostReservationPurchasePreviewOutputBuilder> for GetHostReservationPurchasePreviewOutputBuilder
source§fn eq(&self, other: &GetHostReservationPurchasePreviewOutputBuilder) -> bool
fn eq(&self, other: &GetHostReservationPurchasePreviewOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.