pub struct UpdateRuleFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateRule
.
Updates a rule for the specified Amazon Connect instance.
Use the Rules Function language to code conditions for the rule.
Implementations§
source§impl UpdateRuleFluentBuilder
impl UpdateRuleFluentBuilder
sourcepub fn as_input(&self) -> &UpdateRuleInputBuilder
pub fn as_input(&self) -> &UpdateRuleInputBuilder
Access the UpdateRule as a reference.
sourcepub async fn send(
self
) -> Result<UpdateRuleOutput, SdkError<UpdateRuleError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateRuleOutput, SdkError<UpdateRuleError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateRuleOutput, UpdateRuleError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateRuleOutput, UpdateRuleError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_rule_id(&self) -> &Option<String>
pub fn get_rule_id(&self) -> &Option<String>
A unique identifier for the rule.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the rule. You can change the name only if TriggerEventSource
is one of the following values: OnZendeskTicketCreate
| OnZendeskTicketStatusUpdate
| OnSalesforceCaseCreate
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the rule. You can change the name only if TriggerEventSource
is one of the following values: OnZendeskTicketCreate
| OnZendeskTicketStatusUpdate
| OnSalesforceCaseCreate
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the rule. You can change the name only if TriggerEventSource
is one of the following values: OnZendeskTicketCreate
| OnZendeskTicketStatusUpdate
| OnSalesforceCaseCreate
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 get_function(&self) -> &Option<String>
pub fn get_function(&self) -> &Option<String>
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 get_actions(&self) -> &Option<Vec<RuleAction>>
pub fn get_actions(&self) -> &Option<Vec<RuleAction>>
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 get_publish_status(&self) -> &Option<RulePublishStatus>
pub fn get_publish_status(&self) -> &Option<RulePublishStatus>
The publish status of the rule.
Trait Implementations§
source§impl Clone for UpdateRuleFluentBuilder
impl Clone for UpdateRuleFluentBuilder
source§fn clone(&self) -> UpdateRuleFluentBuilder
fn clone(&self) -> UpdateRuleFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more