#[non_exhaustive]pub struct IotTopicPublishActionBuilder { /* private fields */ }
Expand description
A builder for IotTopicPublishAction
.
Implementations§
source§impl IotTopicPublishActionBuilder
impl IotTopicPublishActionBuilder
sourcepub fn mqtt_topic(self, input: impl Into<String>) -> Self
pub fn mqtt_topic(self, input: impl Into<String>) -> Self
The MQTT topic of the message. You can use a string expression that includes variables ($variable.
) and input values ($input.
) as the topic string.
sourcepub fn set_mqtt_topic(self, input: Option<String>) -> Self
pub fn set_mqtt_topic(self, input: Option<String>) -> Self
The MQTT topic of the message. You can use a string expression that includes variables ($variable.
) and input values ($input.
) as the topic string.
sourcepub fn get_mqtt_topic(&self) -> &Option<String>
pub fn get_mqtt_topic(&self) -> &Option<String>
The MQTT topic of the message. You can use a string expression that includes variables ($variable.
) and input values ($input.
) as the topic string.
sourcepub fn payload(self, input: Payload) -> Self
pub fn payload(self, input: Payload) -> Self
You can configure the action payload when you publish a message to an AWS IoT Core topic.
sourcepub fn set_payload(self, input: Option<Payload>) -> Self
pub fn set_payload(self, input: Option<Payload>) -> Self
You can configure the action payload when you publish a message to an AWS IoT Core topic.
sourcepub fn get_payload(&self) -> &Option<Payload>
pub fn get_payload(&self) -> &Option<Payload>
You can configure the action payload when you publish a message to an AWS IoT Core topic.
sourcepub fn build(self) -> Result<IotTopicPublishAction, BuildError>
pub fn build(self) -> Result<IotTopicPublishAction, BuildError>
Consumes the builder and constructs a IotTopicPublishAction
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for IotTopicPublishActionBuilder
impl Clone for IotTopicPublishActionBuilder
source§fn clone(&self) -> IotTopicPublishActionBuilder
fn clone(&self) -> IotTopicPublishActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IotTopicPublishActionBuilder
impl Debug for IotTopicPublishActionBuilder
source§impl Default for IotTopicPublishActionBuilder
impl Default for IotTopicPublishActionBuilder
source§fn default() -> IotTopicPublishActionBuilder
fn default() -> IotTopicPublishActionBuilder
source§impl PartialEq for IotTopicPublishActionBuilder
impl PartialEq for IotTopicPublishActionBuilder
source§fn eq(&self, other: &IotTopicPublishActionBuilder) -> bool
fn eq(&self, other: &IotTopicPublishActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IotTopicPublishActionBuilder
Auto Trait Implementations§
impl Freeze for IotTopicPublishActionBuilder
impl RefUnwindSafe for IotTopicPublishActionBuilder
impl Send for IotTopicPublishActionBuilder
impl Sync for IotTopicPublishActionBuilder
impl Unpin for IotTopicPublishActionBuilder
impl UnwindSafe for IotTopicPublishActionBuilder
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