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 ==
.impl StructuralPartialEq for ThingAttributeBuilder
Auto Trait Implementations§
impl Freeze for ThingAttributeBuilder
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
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