pub struct CreateRuleFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateRule
.
Creates a rule for use with the specified detector.
Implementations§
source§impl CreateRuleFluentBuilder
impl CreateRuleFluentBuilder
sourcepub fn as_input(&self) -> &CreateRuleInputBuilder
pub fn as_input(&self) -> &CreateRuleInputBuilder
Access the CreateRule as a reference.
sourcepub async fn send(
self
) -> Result<CreateRuleOutput, SdkError<CreateRuleError, HttpResponse>>
pub async fn send( self ) -> Result<CreateRuleOutput, SdkError<CreateRuleError, 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<CreateRuleOutput, CreateRuleError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateRuleOutput, CreateRuleError, 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
The rule ID.
sourcepub fn get_rule_id(&self) -> &Option<String>
pub fn get_rule_id(&self) -> &Option<String>
The rule ID.
sourcepub fn detector_id(self, input: impl Into<String>) -> Self
pub fn detector_id(self, input: impl Into<String>) -> Self
The detector ID for the rule's parent detector.
sourcepub fn set_detector_id(self, input: Option<String>) -> Self
pub fn set_detector_id(self, input: Option<String>) -> Self
The detector ID for the rule's parent detector.
sourcepub fn get_detector_id(&self) -> &Option<String>
pub fn get_detector_id(&self) -> &Option<String>
The detector ID for the rule's parent detector.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The rule description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The rule description.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The rule description.
sourcepub fn expression(self, input: impl Into<String>) -> Self
pub fn expression(self, input: impl Into<String>) -> Self
The rule expression.
sourcepub fn set_expression(self, input: Option<String>) -> Self
pub fn set_expression(self, input: Option<String>) -> Self
The rule expression.
sourcepub fn get_expression(&self) -> &Option<String>
pub fn get_expression(&self) -> &Option<String>
The rule expression.
sourcepub fn set_language(self, input: Option<Language>) -> Self
pub fn set_language(self, input: Option<Language>) -> Self
The language of the rule.
sourcepub fn get_language(&self) -> &Option<Language>
pub fn get_language(&self) -> &Option<Language>
The language of the rule.
sourcepub fn outcomes(self, input: impl Into<String>) -> Self
pub fn outcomes(self, input: impl Into<String>) -> Self
Appends an item to outcomes
.
To override the contents of this collection use set_outcomes
.
The outcome or outcomes returned when the rule expression matches.
sourcepub fn set_outcomes(self, input: Option<Vec<String>>) -> Self
pub fn set_outcomes(self, input: Option<Vec<String>>) -> Self
The outcome or outcomes returned when the rule expression matches.
sourcepub fn get_outcomes(&self) -> &Option<Vec<String>>
pub fn get_outcomes(&self) -> &Option<Vec<String>>
The outcome or outcomes returned when the rule expression matches.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
A collection of key and value pairs.
A collection of key and value pairs.
A collection of key and value pairs.
Trait Implementations§
source§impl Clone for CreateRuleFluentBuilder
impl Clone for CreateRuleFluentBuilder
source§fn clone(&self) -> CreateRuleFluentBuilder
fn clone(&self) -> CreateRuleFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more