Struct aws_sdk_iot::types::builders::TopicRulePayloadBuilder
source · #[non_exhaustive]pub struct TopicRulePayloadBuilder { /* private fields */ }
Expand description
A builder for TopicRulePayload
.
Implementations§
source§impl TopicRulePayloadBuilder
impl TopicRulePayloadBuilder
sourcepub fn sql(self, input: impl Into<String>) -> Self
pub fn sql(self, input: impl Into<String>) -> Self
The SQL statement used to query the topic. For more information, see IoT SQL Reference in the IoT Developer Guide.
This field is required.sourcepub fn set_sql(self, input: Option<String>) -> Self
pub fn set_sql(self, input: Option<String>) -> Self
The SQL statement used to query the topic. For more information, see IoT SQL Reference in the IoT Developer Guide.
sourcepub fn get_sql(&self) -> &Option<String>
pub fn get_sql(&self) -> &Option<String>
The SQL statement used to query the topic. For more information, see IoT SQL Reference in the IoT Developer Guide.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the rule.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the rule.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the rule.
sourcepub fn actions(self, input: Action) -> Self
pub fn actions(self, input: Action) -> Self
Appends an item to actions
.
To override the contents of this collection use set_actions
.
The actions associated with the rule.
sourcepub fn set_actions(self, input: Option<Vec<Action>>) -> Self
pub fn set_actions(self, input: Option<Vec<Action>>) -> Self
The actions associated with the rule.
sourcepub fn get_actions(&self) -> &Option<Vec<Action>>
pub fn get_actions(&self) -> &Option<Vec<Action>>
The actions associated with the rule.
sourcepub fn rule_disabled(self, input: bool) -> Self
pub fn rule_disabled(self, input: bool) -> Self
Specifies whether the rule is disabled.
sourcepub fn set_rule_disabled(self, input: Option<bool>) -> Self
pub fn set_rule_disabled(self, input: Option<bool>) -> Self
Specifies whether the rule is disabled.
sourcepub fn get_rule_disabled(&self) -> &Option<bool>
pub fn get_rule_disabled(&self) -> &Option<bool>
Specifies whether the rule is disabled.
sourcepub fn aws_iot_sql_version(self, input: impl Into<String>) -> Self
pub fn aws_iot_sql_version(self, input: impl Into<String>) -> Self
The version of the SQL rules engine to use when evaluating the rule.
sourcepub fn set_aws_iot_sql_version(self, input: Option<String>) -> Self
pub fn set_aws_iot_sql_version(self, input: Option<String>) -> Self
The version of the SQL rules engine to use when evaluating the rule.
sourcepub fn get_aws_iot_sql_version(&self) -> &Option<String>
pub fn get_aws_iot_sql_version(&self) -> &Option<String>
The version of the SQL rules engine to use when evaluating the rule.
sourcepub fn error_action(self, input: Action) -> Self
pub fn error_action(self, input: Action) -> Self
The action to take when an error occurs.
sourcepub fn set_error_action(self, input: Option<Action>) -> Self
pub fn set_error_action(self, input: Option<Action>) -> Self
The action to take when an error occurs.
sourcepub fn get_error_action(&self) -> &Option<Action>
pub fn get_error_action(&self) -> &Option<Action>
The action to take when an error occurs.
sourcepub fn build(self) -> Result<TopicRulePayload, BuildError>
pub fn build(self) -> Result<TopicRulePayload, BuildError>
Consumes the builder and constructs a TopicRulePayload
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TopicRulePayloadBuilder
impl Clone for TopicRulePayloadBuilder
source§fn clone(&self) -> TopicRulePayloadBuilder
fn clone(&self) -> TopicRulePayloadBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TopicRulePayloadBuilder
impl Debug for TopicRulePayloadBuilder
source§impl Default for TopicRulePayloadBuilder
impl Default for TopicRulePayloadBuilder
source§fn default() -> TopicRulePayloadBuilder
fn default() -> TopicRulePayloadBuilder
source§impl PartialEq for TopicRulePayloadBuilder
impl PartialEq for TopicRulePayloadBuilder
source§fn eq(&self, other: &TopicRulePayloadBuilder) -> bool
fn eq(&self, other: &TopicRulePayloadBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.