Struct aws_sdk_iot::types::builders::IotEventsActionBuilder
source · #[non_exhaustive]pub struct IotEventsActionBuilder { /* private fields */ }
Expand description
A builder for IotEventsAction
.
Implementations§
source§impl IotEventsActionBuilder
impl IotEventsActionBuilder
sourcepub fn input_name(self, input: impl Into<String>) -> Self
pub fn input_name(self, input: impl Into<String>) -> Self
The name of the IoT Events input.
This field is required.sourcepub fn set_input_name(self, input: Option<String>) -> Self
pub fn set_input_name(self, input: Option<String>) -> Self
The name of the IoT Events input.
sourcepub fn get_input_name(&self) -> &Option<String>
pub fn get_input_name(&self) -> &Option<String>
The name of the IoT Events input.
sourcepub fn message_id(self, input: impl Into<String>) -> Self
pub fn message_id(self, input: impl Into<String>) -> Self
The ID of the message. The default messageId
is a new UUID value.
When batchMode
is true
, you can't specify a messageId
--a new UUID value will be assigned.
Assign a value to this property to ensure that only one input (message) with a given messageId
will be processed by an IoT Events detector.
sourcepub fn set_message_id(self, input: Option<String>) -> Self
pub fn set_message_id(self, input: Option<String>) -> Self
The ID of the message. The default messageId
is a new UUID value.
When batchMode
is true
, you can't specify a messageId
--a new UUID value will be assigned.
Assign a value to this property to ensure that only one input (message) with a given messageId
will be processed by an IoT Events detector.
sourcepub fn get_message_id(&self) -> &Option<String>
pub fn get_message_id(&self) -> &Option<String>
The ID of the message. The default messageId
is a new UUID value.
When batchMode
is true
, you can't specify a messageId
--a new UUID value will be assigned.
Assign a value to this property to ensure that only one input (message) with a given messageId
will be processed by an IoT Events detector.
sourcepub fn batch_mode(self, input: bool) -> Self
pub fn batch_mode(self, input: bool) -> Self
Whether to process the event actions as a batch. The default value is false
.
When batchMode
is true
, you can't specify a messageId
.
When batchMode
is true
and the rule SQL statement evaluates to an Array, each Array element is treated as a separate message when it's sent to IoT Events by calling BatchPutMessage
. The resulting array can't have more than 10 messages.
sourcepub fn set_batch_mode(self, input: Option<bool>) -> Self
pub fn set_batch_mode(self, input: Option<bool>) -> Self
Whether to process the event actions as a batch. The default value is false
.
When batchMode
is true
, you can't specify a messageId
.
When batchMode
is true
and the rule SQL statement evaluates to an Array, each Array element is treated as a separate message when it's sent to IoT Events by calling BatchPutMessage
. The resulting array can't have more than 10 messages.
sourcepub fn get_batch_mode(&self) -> &Option<bool>
pub fn get_batch_mode(&self) -> &Option<bool>
Whether to process the event actions as a batch. The default value is false
.
When batchMode
is true
, you can't specify a messageId
.
When batchMode
is true
and the rule SQL statement evaluates to an Array, each Array element is treated as a separate message when it's sent to IoT Events by calling BatchPutMessage
. The resulting array can't have more than 10 messages.
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 grants IoT permission to send an input to an IoT Events detector. ("Action":"iotevents:BatchPutMessage").
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 grants IoT permission to send an input to an IoT Events detector. ("Action":"iotevents:BatchPutMessage").
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The ARN of the role that grants IoT permission to send an input to an IoT Events detector. ("Action":"iotevents:BatchPutMessage").
sourcepub fn build(self) -> Result<IotEventsAction, BuildError>
pub fn build(self) -> Result<IotEventsAction, BuildError>
Consumes the builder and constructs a IotEventsAction
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for IotEventsActionBuilder
impl Clone for IotEventsActionBuilder
source§fn clone(&self) -> IotEventsActionBuilder
fn clone(&self) -> IotEventsActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IotEventsActionBuilder
impl Debug for IotEventsActionBuilder
source§impl Default for IotEventsActionBuilder
impl Default for IotEventsActionBuilder
source§fn default() -> IotEventsActionBuilder
fn default() -> IotEventsActionBuilder
source§impl PartialEq for IotEventsActionBuilder
impl PartialEq for IotEventsActionBuilder
source§fn eq(&self, other: &IotEventsActionBuilder) -> bool
fn eq(&self, other: &IotEventsActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.