#[non_exhaustive]pub struct RestoreSnapshotFromRecycleBinInput { /* private fields */ }
Implementations§
source§impl RestoreSnapshotFromRecycleBinInput
impl RestoreSnapshotFromRecycleBinInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RestoreSnapshotFromRecycleBin, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RestoreSnapshotFromRecycleBin, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<RestoreSnapshotFromRecycleBin
>
Examples found in repository?
src/client.rs (line 75752)
75738 75739 75740 75741 75742 75743 75744 75745 75746 75747 75748 75749 75750 75751 75752 75753 75754 75755 75756 75757 75758 75759 75760 75761 75762 75763 75764 75765 75766 75767 75768 75769 75770 75771 75772 75773 75774 75775 75776 75777 75778 75779 75780
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::RestoreSnapshotFromRecycleBin,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::RestoreSnapshotFromRecycleBinError>,
> {
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::RestoreSnapshotFromRecycleBinOutput,
aws_smithy_http::result::SdkError<crate::error::RestoreSnapshotFromRecycleBinError>,
> {
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 RestoreSnapshotFromRecycleBinInput
.
source§impl RestoreSnapshotFromRecycleBinInput
impl RestoreSnapshotFromRecycleBinInput
sourcepub fn snapshot_id(&self) -> Option<&str>
pub fn snapshot_id(&self) -> Option<&str>
The ID of the snapshot to restore.
Trait Implementations§
source§impl Clone for RestoreSnapshotFromRecycleBinInput
impl Clone for RestoreSnapshotFromRecycleBinInput
source§fn clone(&self) -> RestoreSnapshotFromRecycleBinInput
fn clone(&self) -> RestoreSnapshotFromRecycleBinInput
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