#[non_exhaustive]pub struct RestoreManagedPrefixListVersionInput { /* private fields */ }
Implementations§
source§impl RestoreManagedPrefixListVersionInput
impl RestoreManagedPrefixListVersionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RestoreManagedPrefixListVersion, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RestoreManagedPrefixListVersion, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<RestoreManagedPrefixListVersion
>
Examples found in repository?
src/client.rs (line 75646)
75632 75633 75634 75635 75636 75637 75638 75639 75640 75641 75642 75643 75644 75645 75646 75647 75648 75649 75650 75651 75652 75653 75654 75655 75656 75657 75658 75659 75660 75661 75662 75663 75664 75665 75666 75667 75668 75669 75670 75671 75672 75673 75674
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::RestoreManagedPrefixListVersion,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::RestoreManagedPrefixListVersionError>,
> {
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::RestoreManagedPrefixListVersionOutput,
aws_smithy_http::result::SdkError<crate::error::RestoreManagedPrefixListVersionError>,
> {
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 RestoreManagedPrefixListVersionInput
.
source§impl RestoreManagedPrefixListVersionInput
impl RestoreManagedPrefixListVersionInput
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn prefix_list_id(&self) -> Option<&str>
pub fn prefix_list_id(&self) -> Option<&str>
The ID of the prefix list.
sourcepub fn previous_version(&self) -> Option<i64>
pub fn previous_version(&self) -> Option<i64>
The version to restore.
sourcepub fn current_version(&self) -> Option<i64>
pub fn current_version(&self) -> Option<i64>
The current version number for the prefix list.
Trait Implementations§
source§impl Clone for RestoreManagedPrefixListVersionInput
impl Clone for RestoreManagedPrefixListVersionInput
source§fn clone(&self) -> RestoreManagedPrefixListVersionInput
fn clone(&self) -> RestoreManagedPrefixListVersionInput
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