Struct aws_sdk_ec2::input::EnableVolumeIoInput
source · #[non_exhaustive]pub struct EnableVolumeIoInput { /* private fields */ }
Implementations§
source§impl EnableVolumeIoInput
impl EnableVolumeIoInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<EnableVolumeIO, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<EnableVolumeIO, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<EnableVolumeIO
>
Examples found in repository?
src/client.rs (line 56429)
56415 56416 56417 56418 56419 56420 56421 56422 56423 56424 56425 56426 56427 56428 56429 56430 56431 56432 56433 56434 56435 56436 56437 56438 56439 56440 56441 56442 56443 56444 56445 56446 56447 56448 56449 56450 56451 56452 56453 56454 56455 56456 56457
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::EnableVolumeIO,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::EnableVolumeIOError>,
> {
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::EnableVolumeIoOutput,
aws_smithy_http::result::SdkError<crate::error::EnableVolumeIOError>,
> {
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 EnableVolumeIoInput
.
source§impl EnableVolumeIoInput
impl EnableVolumeIoInput
Trait Implementations§
source§impl Clone for EnableVolumeIoInput
impl Clone for EnableVolumeIoInput
source§fn clone(&self) -> EnableVolumeIoInput
fn clone(&self) -> EnableVolumeIoInput
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