Struct aws_sdk_iot::types::builders::ThingDocumentBuilder
source · #[non_exhaustive]pub struct ThingDocumentBuilder { /* private fields */ }
Expand description
A builder for ThingDocument
.
Implementations§
source§impl ThingDocumentBuilder
impl ThingDocumentBuilder
sourcepub fn thing_name(self, input: impl Into<String>) -> Self
pub fn thing_name(self, input: impl Into<String>) -> Self
The thing name.
sourcepub fn set_thing_name(self, input: Option<String>) -> Self
pub fn set_thing_name(self, input: Option<String>) -> Self
The thing name.
sourcepub fn get_thing_name(&self) -> &Option<String>
pub fn get_thing_name(&self) -> &Option<String>
The thing name.
sourcepub fn set_thing_id(self, input: Option<String>) -> Self
pub fn set_thing_id(self, input: Option<String>) -> Self
The thing ID.
sourcepub fn get_thing_id(&self) -> &Option<String>
pub fn get_thing_id(&self) -> &Option<String>
The thing ID.
sourcepub fn thing_type_name(self, input: impl Into<String>) -> Self
pub fn thing_type_name(self, input: impl Into<String>) -> Self
The thing type name.
sourcepub fn set_thing_type_name(self, input: Option<String>) -> Self
pub fn set_thing_type_name(self, input: Option<String>) -> Self
The thing type name.
sourcepub fn get_thing_type_name(&self) -> &Option<String>
pub fn get_thing_type_name(&self) -> &Option<String>
The thing type name.
sourcepub fn thing_group_names(self, input: impl Into<String>) -> Self
pub fn thing_group_names(self, input: impl Into<String>) -> Self
Appends an item to thing_group_names
.
To override the contents of this collection use set_thing_group_names
.
Thing group names.
sourcepub fn set_thing_group_names(self, input: Option<Vec<String>>) -> Self
pub fn set_thing_group_names(self, input: Option<Vec<String>>) -> Self
Thing group names.
sourcepub fn get_thing_group_names(&self) -> &Option<Vec<String>>
pub fn get_thing_group_names(&self) -> &Option<Vec<String>>
Thing group names.
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
.
The attributes.
sourcepub fn shadow(self, input: impl Into<String>) -> Self
pub fn shadow(self, input: impl Into<String>) -> Self
The unnamed shadow and named shadow.
For more information about shadows, see IoT Device Shadow service.
sourcepub fn set_shadow(self, input: Option<String>) -> Self
pub fn set_shadow(self, input: Option<String>) -> Self
The unnamed shadow and named shadow.
For more information about shadows, see IoT Device Shadow service.
sourcepub fn get_shadow(&self) -> &Option<String>
pub fn get_shadow(&self) -> &Option<String>
The unnamed shadow and named shadow.
For more information about shadows, see IoT Device Shadow service.
sourcepub fn device_defender(self, input: impl Into<String>) -> Self
pub fn device_defender(self, input: impl Into<String>) -> Self
Contains Device Defender data.
For more information about Device Defender, see Device Defender.
sourcepub fn set_device_defender(self, input: Option<String>) -> Self
pub fn set_device_defender(self, input: Option<String>) -> Self
Contains Device Defender data.
For more information about Device Defender, see Device Defender.
sourcepub fn get_device_defender(&self) -> &Option<String>
pub fn get_device_defender(&self) -> &Option<String>
Contains Device Defender data.
For more information about Device Defender, see Device Defender.
sourcepub fn connectivity(self, input: ThingConnectivity) -> Self
pub fn connectivity(self, input: ThingConnectivity) -> Self
Indicates whether the thing is connected to the Amazon Web Services IoT Core service.
sourcepub fn set_connectivity(self, input: Option<ThingConnectivity>) -> Self
pub fn set_connectivity(self, input: Option<ThingConnectivity>) -> Self
Indicates whether the thing is connected to the Amazon Web Services IoT Core service.
sourcepub fn get_connectivity(&self) -> &Option<ThingConnectivity>
pub fn get_connectivity(&self) -> &Option<ThingConnectivity>
Indicates whether the thing is connected to the Amazon Web Services IoT Core service.
sourcepub fn build(self) -> ThingDocument
pub fn build(self) -> ThingDocument
Consumes the builder and constructs a ThingDocument
.
Trait Implementations§
source§impl Clone for ThingDocumentBuilder
impl Clone for ThingDocumentBuilder
source§fn clone(&self) -> ThingDocumentBuilder
fn clone(&self) -> ThingDocumentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ThingDocumentBuilder
impl Debug for ThingDocumentBuilder
source§impl Default for ThingDocumentBuilder
impl Default for ThingDocumentBuilder
source§fn default() -> ThingDocumentBuilder
fn default() -> ThingDocumentBuilder
source§impl PartialEq for ThingDocumentBuilder
impl PartialEq for ThingDocumentBuilder
source§fn eq(&self, other: &ThingDocumentBuilder) -> bool
fn eq(&self, other: &ThingDocumentBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.