Struct aws_sdk_ec2::input::RestoreAddressToClassicInput
source · #[non_exhaustive]pub struct RestoreAddressToClassicInput { /* private fields */ }
Implementations§
source§impl RestoreAddressToClassicInput
impl RestoreAddressToClassicInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RestoreAddressToClassic, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RestoreAddressToClassic, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<RestoreAddressToClassic
>
Examples found in repository?
src/client.rs (line 75480)
75466 75467 75468 75469 75470 75471 75472 75473 75474 75475 75476 75477 75478 75479 75480 75481 75482 75483 75484 75485 75486 75487 75488 75489 75490 75491 75492 75493 75494 75495 75496 75497 75498 75499 75500 75501 75502 75503 75504 75505 75506 75507 75508
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::RestoreAddressToClassic,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::RestoreAddressToClassicError>,
> {
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::RestoreAddressToClassicOutput,
aws_smithy_http::result::SdkError<crate::error::RestoreAddressToClassicError>,
> {
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 RestoreAddressToClassicInput
.
source§impl RestoreAddressToClassicInput
impl RestoreAddressToClassicInput
Trait Implementations§
source§impl Clone for RestoreAddressToClassicInput
impl Clone for RestoreAddressToClassicInput
source§fn clone(&self) -> RestoreAddressToClassicInput
fn clone(&self) -> RestoreAddressToClassicInput
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