aws_sdk_ec2/client/get_host_reservation_purchase_preview.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetHostReservationPurchasePreview`](crate::operation::get_host_reservation_purchase_preview::builders::GetHostReservationPurchasePreviewFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`host_id_set(impl Into<String>)`](crate::operation::get_host_reservation_purchase_preview::builders::GetHostReservationPurchasePreviewFluentBuilder::host_id_set) / [`set_host_id_set(Option<Vec::<String>>)`](crate::operation::get_host_reservation_purchase_preview::builders::GetHostReservationPurchasePreviewFluentBuilder::set_host_id_set):<br>required: **true**<br><p>The IDs of the Dedicated Hosts with which the reservation is associated.</p><br>
7 /// - [`offering_id(impl Into<String>)`](crate::operation::get_host_reservation_purchase_preview::builders::GetHostReservationPurchasePreviewFluentBuilder::offering_id) / [`set_offering_id(Option<String>)`](crate::operation::get_host_reservation_purchase_preview::builders::GetHostReservationPurchasePreviewFluentBuilder::set_offering_id):<br>required: **true**<br><p>The offering ID of the reservation.</p><br>
8 /// - On success, responds with [`GetHostReservationPurchasePreviewOutput`](crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewOutput) with field(s):
9 /// - [`currency_code(Option<CurrencyCodeValues>)`](crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewOutput::currency_code): <p>The currency in which the <code>totalUpfrontPrice</code> and <code>totalHourlyPrice</code> amounts are specified. At this time, the only supported currency is <code>USD</code>.</p>
10 /// - [`purchase(Option<Vec::<Purchase>>)`](crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewOutput::purchase): <p>The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.</p>
11 /// - [`total_hourly_price(Option<String>)`](crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewOutput::total_hourly_price): <p>The potential total hourly price of the reservation per hour.</p>
12 /// - [`total_upfront_price(Option<String>)`](crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewOutput::total_upfront_price): <p>The potential total upfront price. This is billed immediately.</p>
13 /// - On failure, responds with [`SdkError<GetHostReservationPurchasePreviewError>`](crate::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewError)
14 pub fn get_host_reservation_purchase_preview(
15 &self,
16 ) -> crate::operation::get_host_reservation_purchase_preview::builders::GetHostReservationPurchasePreviewFluentBuilder {
17 crate::operation::get_host_reservation_purchase_preview::builders::GetHostReservationPurchasePreviewFluentBuilder::new(self.handle.clone())
18 }
19}