Struct aws_sdk_frauddetector::types::builders::EvaluatedRuleBuilder
source · #[non_exhaustive]pub struct EvaluatedRuleBuilder { /* private fields */ }
Expand description
A builder for EvaluatedRule
.
Implementations§
source§impl EvaluatedRuleBuilder
impl EvaluatedRuleBuilder
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 rule_version(self, input: impl Into<String>) -> Self
pub fn rule_version(self, input: impl Into<String>) -> Self
The rule version.
sourcepub fn set_rule_version(self, input: Option<String>) -> Self
pub fn set_rule_version(self, input: Option<String>) -> Self
The rule version.
sourcepub fn get_rule_version(&self) -> &Option<String>
pub fn get_rule_version(&self) -> &Option<String>
The rule version.
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 expression_with_values(self, input: impl Into<String>) -> Self
pub fn expression_with_values(self, input: impl Into<String>) -> Self
The rule expression value.
sourcepub fn set_expression_with_values(self, input: Option<String>) -> Self
pub fn set_expression_with_values(self, input: Option<String>) -> Self
The rule expression value.
sourcepub fn get_expression_with_values(&self) -> &Option<String>
pub fn get_expression_with_values(&self) -> &Option<String>
The rule expression value.
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 rule outcome.
sourcepub fn set_outcomes(self, input: Option<Vec<String>>) -> Self
pub fn set_outcomes(self, input: Option<Vec<String>>) -> Self
The rule outcome.
sourcepub fn get_outcomes(&self) -> &Option<Vec<String>>
pub fn get_outcomes(&self) -> &Option<Vec<String>>
The rule outcome.
sourcepub fn set_evaluated(self, input: Option<bool>) -> Self
pub fn set_evaluated(self, input: Option<bool>) -> Self
Indicates whether the rule was evaluated.
sourcepub fn get_evaluated(&self) -> &Option<bool>
pub fn get_evaluated(&self) -> &Option<bool>
Indicates whether the rule was evaluated.
sourcepub fn set_matched(self, input: Option<bool>) -> Self
pub fn set_matched(self, input: Option<bool>) -> Self
Indicates whether the rule matched.
sourcepub fn get_matched(&self) -> &Option<bool>
pub fn get_matched(&self) -> &Option<bool>
Indicates whether the rule matched.
sourcepub fn build(self) -> EvaluatedRule
pub fn build(self) -> EvaluatedRule
Consumes the builder and constructs a EvaluatedRule
.
Trait Implementations§
source§impl Clone for EvaluatedRuleBuilder
impl Clone for EvaluatedRuleBuilder
source§fn clone(&self) -> EvaluatedRuleBuilder
fn clone(&self) -> EvaluatedRuleBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EvaluatedRuleBuilder
impl Debug for EvaluatedRuleBuilder
source§impl Default for EvaluatedRuleBuilder
impl Default for EvaluatedRuleBuilder
source§fn default() -> EvaluatedRuleBuilder
fn default() -> EvaluatedRuleBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for EvaluatedRuleBuilder
impl PartialEq for EvaluatedRuleBuilder
source§fn eq(&self, other: &EvaluatedRuleBuilder) -> bool
fn eq(&self, other: &EvaluatedRuleBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EvaluatedRuleBuilder
Auto Trait Implementations§
impl Freeze for EvaluatedRuleBuilder
impl RefUnwindSafe for EvaluatedRuleBuilder
impl Send for EvaluatedRuleBuilder
impl Sync for EvaluatedRuleBuilder
impl Unpin for EvaluatedRuleBuilder
impl UnwindSafe for EvaluatedRuleBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.