Struct aws_sdk_iot::input::StopThingRegistrationTaskInput
source · #[non_exhaustive]pub struct StopThingRegistrationTaskInput { /* private fields */ }
Implementations§
source§impl StopThingRegistrationTaskInput
impl StopThingRegistrationTaskInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StopThingRegistrationTask, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StopThingRegistrationTask, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<StopThingRegistrationTask
>
Examples found in repository?
src/client.rs (line 24209)
24195 24196 24197 24198 24199 24200 24201 24202 24203 24204 24205 24206 24207 24208 24209 24210 24211 24212 24213 24214 24215 24216 24217 24218 24219 24220 24221 24222 24223 24224 24225 24226 24227 24228 24229 24230 24231 24232 24233 24234 24235 24236 24237
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::StopThingRegistrationTask,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::StopThingRegistrationTaskError>,
> {
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::StopThingRegistrationTaskOutput,
aws_smithy_http::result::SdkError<crate::error::StopThingRegistrationTaskError>,
> {
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 StopThingRegistrationTaskInput
.
Trait Implementations§
source§impl Clone for StopThingRegistrationTaskInput
impl Clone for StopThingRegistrationTaskInput
source§fn clone(&self) -> StopThingRegistrationTaskInput
fn clone(&self) -> StopThingRegistrationTaskInput
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