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 get_thing_name(&self) -> &Option<String>
pub fn get_thing_name(&self) -> &Option<String>
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 get_thing_type_name(&self) -> &Option<String>
pub fn get_thing_type_name(&self) -> &Option<String>
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 get_thing_arn(&self) -> &Option<String>
pub fn get_thing_arn(&self) -> &Option<String>
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 get_attributes(&self) -> &Option<HashMap<String, String>>
pub fn get_attributes(&self) -> &Option<HashMap<String, String>>
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 get_version(&self) -> &Option<i64>
pub fn get_version(&self) -> &Option<i64>
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
source§impl PartialEq for ThingAttributeBuilder
impl PartialEq for ThingAttributeBuilder
source§fn eq(&self, other: &ThingAttributeBuilder) -> bool
fn eq(&self, other: &ThingAttributeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.