#[non_exhaustive]pub struct RestoreImageFromRecycleBinInput { /* private fields */ }
Implementations§
source§impl RestoreImageFromRecycleBinInput
impl RestoreImageFromRecycleBinInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RestoreImageFromRecycleBin, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RestoreImageFromRecycleBin, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<RestoreImageFromRecycleBin
>
Examples found in repository?
src/client.rs (line 75563)
75549 75550 75551 75552 75553 75554 75555 75556 75557 75558 75559 75560 75561 75562 75563 75564 75565 75566 75567 75568 75569 75570 75571 75572 75573 75574 75575 75576 75577 75578 75579 75580 75581 75582 75583 75584 75585 75586 75587 75588 75589 75590 75591
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::RestoreImageFromRecycleBin,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::RestoreImageFromRecycleBinError>,
> {
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::RestoreImageFromRecycleBinOutput,
aws_smithy_http::result::SdkError<crate::error::RestoreImageFromRecycleBinError>,
> {
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 RestoreImageFromRecycleBinInput
.
Trait Implementations§
source§impl Clone for RestoreImageFromRecycleBinInput
impl Clone for RestoreImageFromRecycleBinInput
source§fn clone(&self) -> RestoreImageFromRecycleBinInput
fn clone(&self) -> RestoreImageFromRecycleBinInput
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