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 ==.impl StructuralPartialEq for AttributePayloadBuilder
Auto Trait Implementations§
impl Freeze for AttributePayloadBuilder
impl RefUnwindSafe for AttributePayloadBuilder
impl Send for AttributePayloadBuilder
impl Sync for AttributePayloadBuilder
impl Unpin for AttributePayloadBuilder
impl UnwindSafe for AttributePayloadBuilder
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