Struct aws_sdk_iot::model::AttributePayload
source · #[non_exhaustive]pub struct AttributePayload { /* private fields */ }
Expand description
The attribute payload.
Implementations§
source§impl AttributePayload
impl AttributePayload
sourcepub fn attributes(&self) -> Option<&HashMap<String, String>>
pub fn attributes(&self) -> Option<&HashMap<String, String>>
A JSON string containing up to three key-value pair in JSON format. For example:
{\"attributes\":{\"string1\":\"string2\"}}
sourcepub fn merge(&self) -> bool
pub fn merge(&self) -> bool
Specifies whether the list of attributes provided in the AttributePayload
is merged with the attributes stored in the registry, instead of overwriting them.
To remove an attribute, call UpdateThing
with an empty attribute value.
The merge
attribute is only valid when calling UpdateThing
or UpdateThingGroup
.
source§impl AttributePayload
impl AttributePayload
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AttributePayload
.
Trait Implementations§
source§impl Clone for AttributePayload
impl Clone for AttributePayload
source§fn clone(&self) -> AttributePayload
fn clone(&self) -> AttributePayload
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 AttributePayload
impl Debug for AttributePayload
source§impl PartialEq<AttributePayload> for AttributePayload
impl PartialEq<AttributePayload> for AttributePayload
source§fn eq(&self, other: &AttributePayload) -> bool
fn eq(&self, other: &AttributePayload) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.