#[non_exhaustive]pub struct DeviceShadowEnrichActivityBuilder { /* private fields */ }Expand description
A builder for DeviceShadowEnrichActivity.
Implementations§
source§impl DeviceShadowEnrichActivityBuilder
impl DeviceShadowEnrichActivityBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the deviceShadowEnrich activity.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the deviceShadowEnrich 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 shadow 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 shadow 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 shadow 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 shadow.
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 shadow.
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 shadow.
sourcepub fn build(self) -> Result<DeviceShadowEnrichActivity, BuildError>
pub fn build(self) -> Result<DeviceShadowEnrichActivity, BuildError>
Consumes the builder and constructs a DeviceShadowEnrichActivity.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DeviceShadowEnrichActivityBuilder
impl Clone for DeviceShadowEnrichActivityBuilder
source§fn clone(&self) -> DeviceShadowEnrichActivityBuilder
fn clone(&self) -> DeviceShadowEnrichActivityBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for DeviceShadowEnrichActivityBuilder
impl Default for DeviceShadowEnrichActivityBuilder
source§fn default() -> DeviceShadowEnrichActivityBuilder
fn default() -> DeviceShadowEnrichActivityBuilder
source§impl PartialEq for DeviceShadowEnrichActivityBuilder
impl PartialEq for DeviceShadowEnrichActivityBuilder
source§fn eq(&self, other: &DeviceShadowEnrichActivityBuilder) -> bool
fn eq(&self, other: &DeviceShadowEnrichActivityBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeviceShadowEnrichActivityBuilder
Auto Trait Implementations§
impl Freeze for DeviceShadowEnrichActivityBuilder
impl RefUnwindSafe for DeviceShadowEnrichActivityBuilder
impl Send for DeviceShadowEnrichActivityBuilder
impl Sync for DeviceShadowEnrichActivityBuilder
impl Unpin for DeviceShadowEnrichActivityBuilder
impl UnwindSafe for DeviceShadowEnrichActivityBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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