#[non_exhaustive]pub struct CreateRuleInputBuilder { /* private fields */ }
Expand description
A builder for CreateRuleInput
.
Implementations§
source§impl CreateRuleInputBuilder
impl CreateRuleInputBuilder
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.
This field is required.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
A unique name for the rule.
This field is required.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.
This field is required.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 get_trigger_event_source(&self) -> &Option<RuleTriggerEventSource>
pub fn get_trigger_event_source(&self) -> &Option<RuleTriggerEventSource>
The event source to trigger the rule.
sourcepub fn function(self, input: impl Into<String>) -> Self
pub fn function(self, input: impl Into<String>) -> Self
The conditions of the rule.
This field is required.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.
This field is required.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.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
sourcepub fn build(self) -> Result<CreateRuleInput, BuildError>
pub fn build(self) -> Result<CreateRuleInput, BuildError>
Consumes the builder and constructs a CreateRuleInput
.
source§impl CreateRuleInputBuilder
impl CreateRuleInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateRuleOutput, SdkError<CreateRuleError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateRuleOutput, SdkError<CreateRuleError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateRuleInputBuilder
impl Clone for CreateRuleInputBuilder
source§fn clone(&self) -> CreateRuleInputBuilder
fn clone(&self) -> CreateRuleInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateRuleInputBuilder
impl Debug for CreateRuleInputBuilder
source§impl Default for CreateRuleInputBuilder
impl Default for CreateRuleInputBuilder
source§fn default() -> CreateRuleInputBuilder
fn default() -> CreateRuleInputBuilder
source§impl PartialEq for CreateRuleInputBuilder
impl PartialEq for CreateRuleInputBuilder
source§fn eq(&self, other: &CreateRuleInputBuilder) -> bool
fn eq(&self, other: &CreateRuleInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.