#[non_exhaustive]pub struct CreateRuleInputBuilder { /* private fields */ }
Expand description
A builder for CreateRuleInput
.
Implementations§
source§impl CreateRuleInputBuilder
impl CreateRuleInputBuilder
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.
This field is required.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.
This field is required.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 language(self, input: Language) -> Self
pub fn language(self, input: Language) -> Self
The language of the rule.
This field is required.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.
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 ==
.