Struct aws_sdk_ec2::input::AssociateTrunkInterfaceInput
source · #[non_exhaustive]pub struct AssociateTrunkInterfaceInput { /* private fields */ }
Implementations§
source§impl AssociateTrunkInterfaceInput
impl AssociateTrunkInterfaceInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<AssociateTrunkInterface, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<AssociateTrunkInterface, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<AssociateTrunkInterface
>
Examples found in repository?
src/client.rs (line 11159)
11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::AssociateTrunkInterface,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::AssociateTrunkInterfaceError>,
> {
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::AssociateTrunkInterfaceOutput,
aws_smithy_http::result::SdkError<crate::error::AssociateTrunkInterfaceError>,
> {
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 AssociateTrunkInterfaceInput
.
source§impl AssociateTrunkInterfaceInput
impl AssociateTrunkInterfaceInput
sourcepub fn branch_interface_id(&self) -> Option<&str>
pub fn branch_interface_id(&self) -> Option<&str>
The ID of the branch network interface.
sourcepub fn trunk_interface_id(&self) -> Option<&str>
pub fn trunk_interface_id(&self) -> Option<&str>
The ID of the trunk network interface.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
Trait Implementations§
source§impl Clone for AssociateTrunkInterfaceInput
impl Clone for AssociateTrunkInterfaceInput
source§fn clone(&self) -> AssociateTrunkInterfaceInput
fn clone(&self) -> AssociateTrunkInterfaceInput
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