Struct aws_sdk_ec2::input::ResetAddressAttributeInput
source · #[non_exhaustive]pub struct ResetAddressAttributeInput { /* private fields */ }
Implementations§
source§impl ResetAddressAttributeInput
impl ResetAddressAttributeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ResetAddressAttribute, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ResetAddressAttribute, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ResetAddressAttribute
>
Examples found in repository?
src/client.rs (line 74813)
74799 74800 74801 74802 74803 74804 74805 74806 74807 74808 74809 74810 74811 74812 74813 74814 74815 74816 74817 74818 74819 74820 74821 74822 74823 74824 74825 74826 74827 74828 74829 74830 74831 74832 74833 74834 74835 74836 74837 74838 74839 74840 74841
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ResetAddressAttribute,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ResetAddressAttributeError>,
> {
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::ResetAddressAttributeOutput,
aws_smithy_http::result::SdkError<crate::error::ResetAddressAttributeError>,
> {
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 ResetAddressAttributeInput
.
source§impl ResetAddressAttributeInput
impl ResetAddressAttributeInput
sourcepub fn allocation_id(&self) -> Option<&str>
pub fn allocation_id(&self) -> Option<&str>
[EC2-VPC] The allocation ID.
sourcepub fn attribute(&self) -> Option<&AddressAttributeName>
pub fn attribute(&self) -> Option<&AddressAttributeName>
The attribute of the IP address.
Trait Implementations§
source§impl Clone for ResetAddressAttributeInput
impl Clone for ResetAddressAttributeInput
source§fn clone(&self) -> ResetAddressAttributeInput
fn clone(&self) -> ResetAddressAttributeInput
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