Struct aws_sdk_iot::types::builders::AttributePayloadBuilder
source · #[non_exhaustive]pub struct AttributePayloadBuilder { /* private fields */ }
Expand description
A builder for AttributePayload
.
Implementations§
source§impl AttributePayloadBuilder
impl AttributePayloadBuilder
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 JSON string containing up to three key-value pair in JSON format. For example:
{\"attributes\":{\"string1\":\"string2\"}}
sourcepub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
A JSON string containing up to three key-value pair in JSON format. For example:
{\"attributes\":{\"string1\":\"string2\"}}
sourcepub fn get_attributes(&self) -> &Option<HashMap<String, String>>
pub fn get_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, input: bool) -> Self
pub fn merge(self, input: bool) -> Self
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
.
sourcepub fn set_merge(self, input: Option<bool>) -> Self
pub fn set_merge(self, input: Option<bool>) -> Self
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
.
sourcepub fn get_merge(&self) -> &Option<bool>
pub fn get_merge(&self) -> &Option<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
.
sourcepub fn build(self) -> AttributePayload
pub fn build(self) -> AttributePayload
Consumes the builder and constructs a AttributePayload
.
Trait Implementations§
source§impl Clone for AttributePayloadBuilder
impl Clone for AttributePayloadBuilder
source§fn clone(&self) -> AttributePayloadBuilder
fn clone(&self) -> AttributePayloadBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AttributePayloadBuilder
impl Debug for AttributePayloadBuilder
source§impl Default for AttributePayloadBuilder
impl Default for AttributePayloadBuilder
source§fn default() -> AttributePayloadBuilder
fn default() -> AttributePayloadBuilder
source§impl PartialEq for AttributePayloadBuilder
impl PartialEq for AttributePayloadBuilder
source§fn eq(&self, other: &AttributePayloadBuilder) -> bool
fn eq(&self, other: &AttributePayloadBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.