Struct aws_sdk_iot::model::thing_attribute::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ThingAttribute
.
Implementations§
source§impl Builder
impl Builder
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
.