Struct aws_sdk_iot::types::builders::TopicRuleBuilder
source · #[non_exhaustive]pub struct TopicRuleBuilder { /* private fields */ }
Expand description
A builder for TopicRule
.
Implementations§
source§impl TopicRuleBuilder
impl TopicRuleBuilder
sourcepub fn set_rule_name(self, input: Option<String>) -> Self
pub fn set_rule_name(self, input: Option<String>) -> Self
The name of the rule.
sourcepub fn get_rule_name(&self) -> &Option<String>
pub fn get_rule_name(&self) -> &Option<String>
The name of the rule.
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. When using a SQL query with multiple lines, be sure to escape the newline characters.
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. When using a SQL query with multiple lines, be sure to escape the newline characters.
sourcepub fn get_sql(&self) -> &Option<String>
pub fn get_sql(&self) -> &Option<String>
The SQL statement used to query the topic. When using a SQL query with multiple lines, be sure to escape the newline characters.
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 created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The date and time the rule was created.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The date and time the rule was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The date and time the rule was created.
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 perform 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 perform when an error occurs.
sourcepub fn get_error_action(&self) -> &Option<Action>
pub fn get_error_action(&self) -> &Option<Action>
The action to perform when an error occurs.
Trait Implementations§
source§impl Clone for TopicRuleBuilder
impl Clone for TopicRuleBuilder
source§fn clone(&self) -> TopicRuleBuilder
fn clone(&self) -> TopicRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TopicRuleBuilder
impl Debug for TopicRuleBuilder
source§impl Default for TopicRuleBuilder
impl Default for TopicRuleBuilder
source§fn default() -> TopicRuleBuilder
fn default() -> TopicRuleBuilder
source§impl PartialEq for TopicRuleBuilder
impl PartialEq for TopicRuleBuilder
source§fn eq(&self, other: &TopicRuleBuilder) -> bool
fn eq(&self, other: &TopicRuleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.