#[non_exhaustive]pub struct DeviceRegistryEnrichActivityBuilder { /* private fields */ }
Expand description
A builder for DeviceRegistryEnrichActivity
.
Implementations§
source§impl DeviceRegistryEnrichActivityBuilder
impl DeviceRegistryEnrichActivityBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the deviceRegistryEnrich
activity.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the deviceRegistryEnrich
activity.
sourcepub fn attribute(self, input: impl Into<String>) -> Self
pub fn attribute(self, input: impl Into<String>) -> Self
The name of the attribute that is added to the message.
This field is required.sourcepub fn set_attribute(self, input: Option<String>) -> Self
pub fn set_attribute(self, input: Option<String>) -> Self
The name of the attribute that is added to the message.
sourcepub fn get_attribute(&self) -> &Option<String>
pub fn get_attribute(&self) -> &Option<String>
The name of the attribute that is added to the message.
sourcepub fn thing_name(self, input: impl Into<String>) -> Self
pub fn thing_name(self, input: impl Into<String>) -> Self
The name of the IoT device whose registry information is added to the message.
This field is required.sourcepub fn set_thing_name(self, input: Option<String>) -> Self
pub fn set_thing_name(self, input: Option<String>) -> Self
The name of the IoT device whose registry information is added to the message.
sourcepub fn get_thing_name(&self) -> &Option<String>
pub fn get_thing_name(&self) -> &Option<String>
The name of the IoT device whose registry information is added to the message.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The ARN of the role that allows access to the device's registry information.
This field is required.sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The ARN of the role that allows access to the device's registry information.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The ARN of the role that allows access to the device's registry information.
sourcepub fn build(self) -> Result<DeviceRegistryEnrichActivity, BuildError>
pub fn build(self) -> Result<DeviceRegistryEnrichActivity, BuildError>
Consumes the builder and constructs a DeviceRegistryEnrichActivity
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DeviceRegistryEnrichActivityBuilder
impl Clone for DeviceRegistryEnrichActivityBuilder
source§fn clone(&self) -> DeviceRegistryEnrichActivityBuilder
fn clone(&self) -> DeviceRegistryEnrichActivityBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DeviceRegistryEnrichActivityBuilder
impl Default for DeviceRegistryEnrichActivityBuilder
source§fn default() -> DeviceRegistryEnrichActivityBuilder
fn default() -> DeviceRegistryEnrichActivityBuilder
source§impl PartialEq for DeviceRegistryEnrichActivityBuilder
impl PartialEq for DeviceRegistryEnrichActivityBuilder
source§fn eq(&self, other: &DeviceRegistryEnrichActivityBuilder) -> bool
fn eq(&self, other: &DeviceRegistryEnrichActivityBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.