pub struct GetHostReservationPurchasePreview { /* private fields */ }
Expand description
Fluent builder constructing a request to GetHostReservationPurchasePreview
.
Preview a reservation purchase with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation.
This is a preview of the PurchaseHostReservation
action and does not result in the offering being purchased.
Implementations§
source§impl GetHostReservationPurchasePreview
impl GetHostReservationPurchasePreview
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GetHostReservationPurchasePreview, AwsResponseRetryClassifier>, SdkError<GetHostReservationPurchasePreviewError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<GetHostReservationPurchasePreview, AwsResponseRetryClassifier>, SdkError<GetHostReservationPurchasePreviewError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<GetHostReservationPurchasePreviewOutput, SdkError<GetHostReservationPurchasePreviewError>>
pub async fn send(
self
) -> Result<GetHostReservationPurchasePreviewOutput, SdkError<GetHostReservationPurchasePreviewError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn host_id_set(self, input: impl Into<String>) -> Self
pub fn host_id_set(self, input: impl Into<String>) -> Self
Appends an item to HostIdSet
.
To override the contents of this collection use set_host_id_set
.
The IDs of the Dedicated Hosts with which the reservation is associated.
sourcepub fn set_host_id_set(self, input: Option<Vec<String>>) -> Self
pub fn set_host_id_set(self, input: Option<Vec<String>>) -> Self
The IDs of the Dedicated Hosts with which the reservation is associated.
sourcepub fn offering_id(self, input: impl Into<String>) -> Self
pub fn offering_id(self, input: impl Into<String>) -> Self
The offering ID of the reservation.
sourcepub fn set_offering_id(self, input: Option<String>) -> Self
pub fn set_offering_id(self, input: Option<String>) -> Self
The offering ID of the reservation.
Trait Implementations§
source§impl Clone for GetHostReservationPurchasePreview
impl Clone for GetHostReservationPurchasePreview
source§fn clone(&self) -> GetHostReservationPurchasePreview
fn clone(&self) -> GetHostReservationPurchasePreview
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more