Struct aws_sdk_iot::input::GetOtaUpdateInput
source · #[non_exhaustive]pub struct GetOtaUpdateInput { /* private fields */ }
Implementations§
source§impl GetOtaUpdateInput
impl GetOtaUpdateInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetOTAUpdate, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetOTAUpdate, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetOTAUpdate
>
Examples found in repository?
src/client.rs (line 15158)
15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetOTAUpdate,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetOTAUpdateError>,
> {
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::GetOtaUpdateOutput,
aws_smithy_http::result::SdkError<crate::error::GetOTAUpdateError>,
> {
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 GetOtaUpdateInput
.
source§impl GetOtaUpdateInput
impl GetOtaUpdateInput
sourcepub fn ota_update_id(&self) -> Option<&str>
pub fn ota_update_id(&self) -> Option<&str>
The OTA update ID.
Trait Implementations§
source§impl Clone for GetOtaUpdateInput
impl Clone for GetOtaUpdateInput
source§fn clone(&self) -> GetOtaUpdateInput
fn clone(&self) -> GetOtaUpdateInput
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