#[non_exhaustive]pub struct RuleGroupReferenceStatementBuilder { /* private fields */ }
Expand description
A builder for RuleGroupReferenceStatement
.
Implementations§
source§impl RuleGroupReferenceStatementBuilder
impl RuleGroupReferenceStatementBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the entity.
This field is required.sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the entity.
sourcepub fn excluded_rules(self, input: ExcludedRule) -> Self
pub fn excluded_rules(self, input: ExcludedRule) -> Self
Appends an item to excluded_rules
.
To override the contents of this collection use set_excluded_rules
.
Rules in the referenced rule group whose actions are set to Count
.
Instead of this option, use RuleActionOverrides
. It accepts any valid action setting, including Count
.
sourcepub fn set_excluded_rules(self, input: Option<Vec<ExcludedRule>>) -> Self
pub fn set_excluded_rules(self, input: Option<Vec<ExcludedRule>>) -> Self
Rules in the referenced rule group whose actions are set to Count
.
Instead of this option, use RuleActionOverrides
. It accepts any valid action setting, including Count
.
sourcepub fn get_excluded_rules(&self) -> &Option<Vec<ExcludedRule>>
pub fn get_excluded_rules(&self) -> &Option<Vec<ExcludedRule>>
Rules in the referenced rule group whose actions are set to Count
.
Instead of this option, use RuleActionOverrides
. It accepts any valid action setting, including Count
.
sourcepub fn rule_action_overrides(self, input: RuleActionOverride) -> Self
pub fn rule_action_overrides(self, input: RuleActionOverride) -> Self
Appends an item to rule_action_overrides
.
To override the contents of this collection use set_rule_action_overrides
.
Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change.
You can use overrides for testing, for example you can override all of rule actions to Count
and then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can also permanently override some or all actions, to modify how the rule group manages your web traffic.
sourcepub fn set_rule_action_overrides(
self,
input: Option<Vec<RuleActionOverride>>
) -> Self
pub fn set_rule_action_overrides( self, input: Option<Vec<RuleActionOverride>> ) -> Self
Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change.
You can use overrides for testing, for example you can override all of rule actions to Count
and then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can also permanently override some or all actions, to modify how the rule group manages your web traffic.
sourcepub fn get_rule_action_overrides(&self) -> &Option<Vec<RuleActionOverride>>
pub fn get_rule_action_overrides(&self) -> &Option<Vec<RuleActionOverride>>
Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change.
You can use overrides for testing, for example you can override all of rule actions to Count
and then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can also permanently override some or all actions, to modify how the rule group manages your web traffic.
sourcepub fn build(self) -> Result<RuleGroupReferenceStatement, BuildError>
pub fn build(self) -> Result<RuleGroupReferenceStatement, BuildError>
Consumes the builder and constructs a RuleGroupReferenceStatement
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RuleGroupReferenceStatementBuilder
impl Clone for RuleGroupReferenceStatementBuilder
source§fn clone(&self) -> RuleGroupReferenceStatementBuilder
fn clone(&self) -> RuleGroupReferenceStatementBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for RuleGroupReferenceStatementBuilder
impl Default for RuleGroupReferenceStatementBuilder
source§fn default() -> RuleGroupReferenceStatementBuilder
fn default() -> RuleGroupReferenceStatementBuilder
source§impl PartialEq for RuleGroupReferenceStatementBuilder
impl PartialEq for RuleGroupReferenceStatementBuilder
source§fn eq(&self, other: &RuleGroupReferenceStatementBuilder) -> bool
fn eq(&self, other: &RuleGroupReferenceStatementBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RuleGroupReferenceStatementBuilder
Auto Trait Implementations§
impl Freeze for RuleGroupReferenceStatementBuilder
impl RefUnwindSafe for RuleGroupReferenceStatementBuilder
impl Send for RuleGroupReferenceStatementBuilder
impl Sync for RuleGroupReferenceStatementBuilder
impl Unpin for RuleGroupReferenceStatementBuilder
impl UnwindSafe for RuleGroupReferenceStatementBuilder
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
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more