#[non_exhaustive]pub struct UpdateThingInputBuilder { /* private fields */ }Expand description
A builder for UpdateThingInput.
Implementations§
source§impl UpdateThingInputBuilder
impl UpdateThingInputBuilder
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 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 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 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 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 build(self) -> Result<UpdateThingInput, BuildError>
pub fn build(self) -> Result<UpdateThingInput, BuildError>
Consumes the builder and constructs a UpdateThingInput.
Trait Implementations§
source§impl Clone for UpdateThingInputBuilder
impl Clone for UpdateThingInputBuilder
source§fn clone(&self) -> UpdateThingInputBuilder
fn clone(&self) -> UpdateThingInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdateThingInputBuilder
impl Debug for UpdateThingInputBuilder
source§impl Default for UpdateThingInputBuilder
impl Default for UpdateThingInputBuilder
source§fn default() -> UpdateThingInputBuilder
fn default() -> UpdateThingInputBuilder
source§impl PartialEq<UpdateThingInputBuilder> for UpdateThingInputBuilder
impl PartialEq<UpdateThingInputBuilder> for UpdateThingInputBuilder
source§fn eq(&self, other: &UpdateThingInputBuilder) -> bool
fn eq(&self, other: &UpdateThingInputBuilder) -> bool
self and other values to be equal, and is used
by ==.