pub struct UpdateThingFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateThing
.
Updates the data for a thing.
Requires permission to access the UpdateThing action.
Implementations§
source§impl UpdateThingFluentBuilder
impl UpdateThingFluentBuilder
sourcepub fn as_input(&self) -> &UpdateThingInputBuilder
pub fn as_input(&self) -> &UpdateThingInputBuilder
Access the UpdateThing as a reference.
sourcepub async fn send(
self
) -> Result<UpdateThingOutput, SdkError<UpdateThingError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateThingOutput, SdkError<UpdateThingError, 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<UpdateThingOutput, UpdateThingError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateThingOutput, UpdateThingError, 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 to update.
You can't change a thing's name. To change a thing's name, you must create a new thing, give it the new name, and then delete the old 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 to update.
You can't change a thing's name. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.
sourcepub fn get_thing_name(&self) -> &Option<String>
pub fn get_thing_name(&self) -> &Option<String>
The name of the thing to update.
You can't change a thing's name. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.
sourcepub fn thing_type_name(self, input: impl Into<String>) -> Self
pub fn thing_type_name(self, input: impl Into<String>) -> Self
The name of the thing type.
sourcepub fn set_thing_type_name(self, input: Option<String>) -> Self
pub fn set_thing_type_name(self, input: Option<String>) -> Self
The name of the thing type.
sourcepub fn get_thing_type_name(&self) -> &Option<String>
pub fn get_thing_type_name(&self) -> &Option<String>
The name of the thing type.
sourcepub fn attribute_payload(self, input: AttributePayload) -> Self
pub fn attribute_payload(self, input: AttributePayload) -> Self
A list of thing attributes, a JSON string containing name-value pairs. For example:
{\"attributes\":{\"name1\":\"value2\"}}
This data is used to add new attributes or update existing attributes.
sourcepub fn set_attribute_payload(self, input: Option<AttributePayload>) -> Self
pub fn set_attribute_payload(self, input: Option<AttributePayload>) -> Self
A list of thing attributes, a JSON string containing name-value pairs. For example:
{\"attributes\":{\"name1\":\"value2\"}}
This data is used to add new attributes or update existing attributes.
sourcepub fn get_attribute_payload(&self) -> &Option<AttributePayload>
pub fn get_attribute_payload(&self) -> &Option<AttributePayload>
A list of thing attributes, a JSON string containing name-value pairs. For example:
{\"attributes\":{\"name1\":\"value2\"}}
This data is used to add new attributes or update existing attributes.
sourcepub fn expected_version(self, input: i64) -> Self
pub fn expected_version(self, input: i64) -> Self
The expected version of the thing record in the registry. If the version of the record in the registry does not match the expected version specified in the request, the UpdateThing
request is rejected with a VersionConflictException
.
sourcepub fn set_expected_version(self, input: Option<i64>) -> Self
pub fn set_expected_version(self, input: Option<i64>) -> Self
The expected version of the thing record in the registry. If the version of the record in the registry does not match the expected version specified in the request, the UpdateThing
request is rejected with a VersionConflictException
.
sourcepub fn get_expected_version(&self) -> &Option<i64>
pub fn get_expected_version(&self) -> &Option<i64>
The expected version of the thing record in the registry. If the version of the record in the registry does not match the expected version specified in the request, the UpdateThing
request is rejected with a VersionConflictException
.
sourcepub fn remove_thing_type(self, input: bool) -> Self
pub fn remove_thing_type(self, input: bool) -> Self
Remove a thing type association. If true, the association is removed.
sourcepub fn set_remove_thing_type(self, input: Option<bool>) -> Self
pub fn set_remove_thing_type(self, input: Option<bool>) -> Self
Remove a thing type association. If true, the association is removed.
sourcepub fn get_remove_thing_type(&self) -> &Option<bool>
pub fn get_remove_thing_type(&self) -> &Option<bool>
Remove a thing type association. If true, the association is removed.
Trait Implementations§
source§impl Clone for UpdateThingFluentBuilder
impl Clone for UpdateThingFluentBuilder
source§fn clone(&self) -> UpdateThingFluentBuilder
fn clone(&self) -> UpdateThingFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more