Struct aws_sdk_iot::input::SetLoggingOptionsInput
source · #[non_exhaustive]pub struct SetLoggingOptionsInput { /* private fields */ }
Expand description
The input for the SetLoggingOptions operation.
Implementations§
source§impl SetLoggingOptionsInput
impl SetLoggingOptionsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SetLoggingOptions, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SetLoggingOptions, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<SetLoggingOptions
>
Examples found in repository?
src/client.rs (line 23472)
23458 23459 23460 23461 23462 23463 23464 23465 23466 23467 23468 23469 23470 23471 23472 23473 23474 23475 23476 23477 23478 23479 23480 23481 23482 23483 23484 23485 23486 23487 23488 23489 23490 23491 23492 23493 23494 23495 23496 23497 23498 23499 23500
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::SetLoggingOptions,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::SetLoggingOptionsError>,
> {
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::SetLoggingOptionsOutput,
aws_smithy_http::result::SdkError<crate::error::SetLoggingOptionsError>,
> {
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 SetLoggingOptionsInput
.
source§impl SetLoggingOptionsInput
impl SetLoggingOptionsInput
sourcepub fn logging_options_payload(&self) -> Option<&LoggingOptionsPayload>
pub fn logging_options_payload(&self) -> Option<&LoggingOptionsPayload>
The logging options payload.
Trait Implementations§
source§impl Clone for SetLoggingOptionsInput
impl Clone for SetLoggingOptionsInput
source§fn clone(&self) -> SetLoggingOptionsInput
fn clone(&self) -> SetLoggingOptionsInput
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