Struct aws_sdk_connect::model::rule::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Rule
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_rule_id(self, input: Option<String>) -> Self
pub fn set_rule_id(self, input: Option<String>) -> Self
A unique identifier for the rule.
sourcepub fn rule_arn(self, input: impl Into<String>) -> Self
pub fn rule_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the rule.
sourcepub fn set_rule_arn(self, input: Option<String>) -> Self
pub fn set_rule_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the rule.
sourcepub fn trigger_event_source(self, input: RuleTriggerEventSource) -> Self
pub fn trigger_event_source(self, input: RuleTriggerEventSource) -> Self
The event source to trigger the rule.
sourcepub fn set_trigger_event_source(
self,
input: Option<RuleTriggerEventSource>
) -> Self
pub fn set_trigger_event_source(
self,
input: Option<RuleTriggerEventSource>
) -> Self
The event source to trigger the rule.
sourcepub fn set_function(self, input: Option<String>) -> Self
pub fn set_function(self, input: Option<String>) -> Self
The conditions of the rule.
sourcepub fn actions(self, input: RuleAction) -> Self
pub fn actions(self, input: RuleAction) -> Self
Appends an item to actions
.
To override the contents of this collection use set_actions
.
A list of actions to be run when the rule is triggered.
sourcepub fn set_actions(self, input: Option<Vec<RuleAction>>) -> Self
pub fn set_actions(self, input: Option<Vec<RuleAction>>) -> Self
A list of actions to be run when the rule is triggered.
sourcepub fn publish_status(self, input: RulePublishStatus) -> Self
pub fn publish_status(self, input: RulePublishStatus) -> Self
The publish status of the rule.
sourcepub fn set_publish_status(self, input: Option<RulePublishStatus>) -> Self
pub fn set_publish_status(self, input: Option<RulePublishStatus>) -> Self
The publish status of the rule.
sourcepub fn created_time(self, input: DateTime) -> Self
pub fn created_time(self, input: DateTime) -> Self
The timestamp for when the rule was created.
sourcepub fn set_created_time(self, input: Option<DateTime>) -> Self
pub fn set_created_time(self, input: Option<DateTime>) -> Self
The timestamp for when the rule was created.
sourcepub fn last_updated_time(self, input: DateTime) -> Self
pub fn last_updated_time(self, input: DateTime) -> Self
The timestamp for the when the rule was last updated.
sourcepub fn set_last_updated_time(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_time(self, input: Option<DateTime>) -> Self
The timestamp for the when the rule was last updated.
sourcepub fn last_updated_by(self, input: impl Into<String>) -> Self
pub fn last_updated_by(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the user who last updated the rule.
sourcepub fn set_last_updated_by(self, input: Option<String>) -> Self
pub fn set_last_updated_by(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the user who last updated the rule.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.