Struct aws_sdk_iot::types::builders::ThingAttributeBuilder
source · #[non_exhaustive]pub struct ThingAttributeBuilder { /* private fields */ }
Expand description
A builder for ThingAttribute
.
Implementations§
source§impl ThingAttributeBuilder
impl ThingAttributeBuilder
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 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, if the thing has been associated with a 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, if the thing has been associated with a type.
sourcepub fn set_thing_arn(self, input: Option<String>) -> Self
pub fn set_thing_arn(self, input: Option<String>) -> Self
The thing ARN.
sourcepub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to attributes
.
To override the contents of this collection use set_attributes
.
A list of thing attributes which are name-value pairs.
sourcepub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
A list of thing attributes which are name-value pairs.
sourcepub fn set_version(self, input: Option<i64>) -> Self
pub fn set_version(self, input: Option<i64>) -> Self
The version of the thing record in the registry.
sourcepub fn build(self) -> ThingAttribute
pub fn build(self) -> ThingAttribute
Consumes the builder and constructs a ThingAttribute
.
Trait Implementations§
source§impl Clone for ThingAttributeBuilder
impl Clone for ThingAttributeBuilder
source§fn clone(&self) -> ThingAttributeBuilder
fn clone(&self) -> ThingAttributeBuilder
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 moresource§impl Debug for ThingAttributeBuilder
impl Debug for ThingAttributeBuilder
source§impl Default for ThingAttributeBuilder
impl Default for ThingAttributeBuilder
source§fn default() -> ThingAttributeBuilder
fn default() -> ThingAttributeBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<ThingAttributeBuilder> for ThingAttributeBuilder
impl PartialEq<ThingAttributeBuilder> for ThingAttributeBuilder
source§fn eq(&self, other: &ThingAttributeBuilder) -> bool
fn eq(&self, other: &ThingAttributeBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ThingAttributeBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ThingAttributeBuilder
impl Send for ThingAttributeBuilder
impl Sync for ThingAttributeBuilder
impl Unpin for ThingAttributeBuilder
impl UnwindSafe for ThingAttributeBuilder
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
Mutably borrows from an owned value. Read more