#[non_exhaustive]pub struct GetHostReservationPurchasePreviewInput { /* private fields */ }
Implementations§
source§impl GetHostReservationPurchasePreviewInput
impl GetHostReservationPurchasePreviewInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetHostReservationPurchasePreview, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetHostReservationPurchasePreview, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetHostReservationPurchasePreview
>
Examples found in repository?
src/client.rs (line 58253)
58239 58240 58241 58242 58243 58244 58245 58246 58247 58248 58249 58250 58251 58252 58253 58254 58255 58256 58257 58258 58259 58260 58261 58262 58263 58264 58265 58266 58267 58268 58269 58270 58271 58272 58273 58274 58275 58276 58277 58278 58279 58280 58281
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetHostReservationPurchasePreview,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetHostReservationPurchasePreviewError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetHostReservationPurchasePreviewOutput,
aws_smithy_http::result::SdkError<crate::error::GetHostReservationPurchasePreviewError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GetHostReservationPurchasePreviewInput
.
source§impl GetHostReservationPurchasePreviewInput
impl GetHostReservationPurchasePreviewInput
sourcepub fn host_id_set(&self) -> Option<&[String]>
pub fn host_id_set(&self) -> Option<&[String]>
The IDs of the Dedicated Hosts with which the reservation is associated.
sourcepub fn offering_id(&self) -> Option<&str>
pub fn offering_id(&self) -> Option<&str>
The offering ID of the reservation.
Trait Implementations§
source§impl Clone for GetHostReservationPurchasePreviewInput
impl Clone for GetHostReservationPurchasePreviewInput
source§fn clone(&self) -> GetHostReservationPurchasePreviewInput
fn clone(&self) -> GetHostReservationPurchasePreviewInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more