Struct aws_sdk_iot::input::SetV2LoggingOptionsInput
source · #[non_exhaustive]pub struct SetV2LoggingOptionsInput { /* private fields */ }
Implementations§
source§impl SetV2LoggingOptionsInput
impl SetV2LoggingOptionsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SetV2LoggingOptions, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SetV2LoggingOptions, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<SetV2LoggingOptions
>
Examples found in repository?
src/client.rs (line 23639)
23625 23626 23627 23628 23629 23630 23631 23632 23633 23634 23635 23636 23637 23638 23639 23640 23641 23642 23643 23644 23645 23646 23647 23648 23649 23650 23651 23652 23653 23654 23655 23656 23657 23658 23659 23660 23661 23662 23663 23664 23665 23666 23667
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::SetV2LoggingOptions,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::SetV2LoggingOptionsError>,
> {
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::SetV2LoggingOptionsOutput,
aws_smithy_http::result::SdkError<crate::error::SetV2LoggingOptionsError>,
> {
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 SetV2LoggingOptionsInput
.
Trait Implementations§
source§impl Clone for SetV2LoggingOptionsInput
impl Clone for SetV2LoggingOptionsInput
source§fn clone(&self) -> SetV2LoggingOptionsInput
fn clone(&self) -> SetV2LoggingOptionsInput
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