Struct aws_sdk_iotdataplane::operation::update_thing_shadow::builders::UpdateThingShadowFluentBuilder
source · pub struct UpdateThingShadowFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateThingShadow
.
Updates the shadow for the specified thing.
Requires permission to access the UpdateThingShadow action.
For more information, see UpdateThingShadow in the IoT Developer Guide.
Implementations§
source§impl UpdateThingShadowFluentBuilder
impl UpdateThingShadowFluentBuilder
sourcepub fn as_input(&self) -> &UpdateThingShadowInputBuilder
pub fn as_input(&self) -> &UpdateThingShadowInputBuilder
Access the UpdateThingShadow as a reference.
sourcepub async fn send(
self
) -> Result<UpdateThingShadowOutput, SdkError<UpdateThingShadowError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateThingShadowOutput, SdkError<UpdateThingShadowError, HttpResponse>>
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, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateThingShadowOutput, UpdateThingShadowError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateThingShadowOutput, UpdateThingShadowError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn thing_name(self, input: impl Into<String>) -> Self
pub fn thing_name(self, input: impl Into<String>) -> Self
The name of the thing.
sourcepub fn set_thing_name(self, input: Option<String>) -> Self
pub fn set_thing_name(self, input: Option<String>) -> Self
The name of the thing.
sourcepub fn get_thing_name(&self) -> &Option<String>
pub fn get_thing_name(&self) -> &Option<String>
The name of the thing.
sourcepub fn shadow_name(self, input: impl Into<String>) -> Self
pub fn shadow_name(self, input: impl Into<String>) -> Self
The name of the shadow.
sourcepub fn set_shadow_name(self, input: Option<String>) -> Self
pub fn set_shadow_name(self, input: Option<String>) -> Self
The name of the shadow.
sourcepub fn get_shadow_name(&self) -> &Option<String>
pub fn get_shadow_name(&self) -> &Option<String>
The name of the shadow.
sourcepub fn set_payload(self, input: Option<Blob>) -> Self
pub fn set_payload(self, input: Option<Blob>) -> Self
The state information, in JSON format.
sourcepub fn get_payload(&self) -> &Option<Blob>
pub fn get_payload(&self) -> &Option<Blob>
The state information, in JSON format.
Trait Implementations§
source§impl Clone for UpdateThingShadowFluentBuilder
impl Clone for UpdateThingShadowFluentBuilder
source§fn clone(&self) -> UpdateThingShadowFluentBuilder
fn clone(&self) -> UpdateThingShadowFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdateThingShadowFluentBuilder
impl !RefUnwindSafe for UpdateThingShadowFluentBuilder
impl Send for UpdateThingShadowFluentBuilder
impl Sync for UpdateThingShadowFluentBuilder
impl Unpin for UpdateThingShadowFluentBuilder
impl !UnwindSafe for UpdateThingShadowFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more