#[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.
This field is required.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.
sourcepub fn build(self) -> Result<UpdateThingInput, BuildError>
pub fn build(self) -> Result<UpdateThingInput, BuildError>
Consumes the builder and constructs a UpdateThingInput
.
source§impl UpdateThingInputBuilder
impl UpdateThingInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateThingOutput, SdkError<UpdateThingError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateThingOutput, SdkError<UpdateThingError, HttpResponse>>
Sends a request with this input using the given client.
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 for UpdateThingInputBuilder
impl PartialEq 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 ==
.impl StructuralPartialEq for UpdateThingInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateThingInputBuilder
impl RefUnwindSafe for UpdateThingInputBuilder
impl Send for UpdateThingInputBuilder
impl Sync for UpdateThingInputBuilder
impl Unpin for UpdateThingInputBuilder
impl UnwindSafe for UpdateThingInputBuilder
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