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 for GetHostReservationPurchasePreviewOutputBuilder
impl PartialEq 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 ==.impl StructuralPartialEq for GetHostReservationPurchasePreviewOutputBuilder
Auto Trait Implementations§
impl Freeze for GetHostReservationPurchasePreviewOutputBuilder
impl RefUnwindSafe for GetHostReservationPurchasePreviewOutputBuilder
impl Send for GetHostReservationPurchasePreviewOutputBuilder
impl Sync for GetHostReservationPurchasePreviewOutputBuilder
impl Unpin for GetHostReservationPurchasePreviewOutputBuilder
impl UnwindSafe for GetHostReservationPurchasePreviewOutputBuilder
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> 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