Struct aws_sdk_iot::input::SetV2LoggingLevelInput
source · #[non_exhaustive]pub struct SetV2LoggingLevelInput { /* private fields */ }
Implementations§
source§impl SetV2LoggingLevelInput
impl SetV2LoggingLevelInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SetV2LoggingLevel, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SetV2LoggingLevel, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<SetV2LoggingLevel
>
Examples found in repository?
src/client.rs (line 23552)
23538 23539 23540 23541 23542 23543 23544 23545 23546 23547 23548 23549 23550 23551 23552 23553 23554 23555 23556 23557 23558 23559 23560 23561 23562 23563 23564 23565 23566 23567 23568 23569 23570 23571 23572 23573 23574 23575 23576 23577 23578 23579 23580
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::SetV2LoggingLevel,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::SetV2LoggingLevelError>,
> {
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::SetV2LoggingLevelOutput,
aws_smithy_http::result::SdkError<crate::error::SetV2LoggingLevelError>,
> {
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 SetV2LoggingLevelInput
.
Trait Implementations§
source§impl Clone for SetV2LoggingLevelInput
impl Clone for SetV2LoggingLevelInput
source§fn clone(&self) -> SetV2LoggingLevelInput
fn clone(&self) -> SetV2LoggingLevelInput
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