Struct aws_sdk_ec2::input::ModifySnapshotTierInput
source · #[non_exhaustive]pub struct ModifySnapshotTierInput { /* private fields */ }
Implementations§
source§impl ModifySnapshotTierInput
impl ModifySnapshotTierInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifySnapshotTier, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifySnapshotTier, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ModifySnapshotTier
>
Examples found in repository?
src/client.rs (line 67477)
67463 67464 67465 67466 67467 67468 67469 67470 67471 67472 67473 67474 67475 67476 67477 67478 67479 67480 67481 67482 67483 67484 67485 67486 67487 67488 67489 67490 67491 67492 67493 67494 67495 67496 67497 67498 67499 67500 67501 67502 67503 67504 67505
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ModifySnapshotTier,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ModifySnapshotTierError>,
> {
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::ModifySnapshotTierOutput,
aws_smithy_http::result::SdkError<crate::error::ModifySnapshotTierError>,
> {
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 ModifySnapshotTierInput
.
source§impl ModifySnapshotTierInput
impl ModifySnapshotTierInput
sourcepub fn snapshot_id(&self) -> Option<&str>
pub fn snapshot_id(&self) -> Option<&str>
The ID of the snapshot.
sourcepub fn storage_tier(&self) -> Option<&TargetStorageTier>
pub fn storage_tier(&self) -> Option<&TargetStorageTier>
The name of the storage tier. You must specify archive
.
Trait Implementations§
source§impl Clone for ModifySnapshotTierInput
impl Clone for ModifySnapshotTierInput
source§fn clone(&self) -> ModifySnapshotTierInput
fn clone(&self) -> ModifySnapshotTierInput
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