Struct aws_sdk_wafv2::types::builders::OverrideActionBuilder
source · #[non_exhaustive]pub struct OverrideActionBuilder { /* private fields */ }
Expand description
A builder for OverrideAction
.
Implementations§
source§impl OverrideActionBuilder
impl OverrideActionBuilder
sourcepub fn count(self, input: CountAction) -> Self
pub fn count(self, input: CountAction) -> Self
Override the rule group evaluation result to count only.
This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with Count
action, in your rule group reference statement settings.
sourcepub fn set_count(self, input: Option<CountAction>) -> Self
pub fn set_count(self, input: Option<CountAction>) -> Self
Override the rule group evaluation result to count only.
This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with Count
action, in your rule group reference statement settings.
sourcepub fn get_count(&self) -> &Option<CountAction>
pub fn get_count(&self) -> &Option<CountAction>
Override the rule group evaluation result to count only.
This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with Count
action, in your rule group reference statement settings.
sourcepub fn none(self, input: NoneAction) -> Self
pub fn none(self, input: NoneAction) -> Self
Don't override the rule group evaluation result. This is the most common setting.
sourcepub fn set_none(self, input: Option<NoneAction>) -> Self
pub fn set_none(self, input: Option<NoneAction>) -> Self
Don't override the rule group evaluation result. This is the most common setting.
sourcepub fn get_none(&self) -> &Option<NoneAction>
pub fn get_none(&self) -> &Option<NoneAction>
Don't override the rule group evaluation result. This is the most common setting.
sourcepub fn build(self) -> OverrideAction
pub fn build(self) -> OverrideAction
Consumes the builder and constructs a OverrideAction
.
Trait Implementations§
source§impl Clone for OverrideActionBuilder
impl Clone for OverrideActionBuilder
source§fn clone(&self) -> OverrideActionBuilder
fn clone(&self) -> OverrideActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OverrideActionBuilder
impl Debug for OverrideActionBuilder
source§impl Default for OverrideActionBuilder
impl Default for OverrideActionBuilder
source§fn default() -> OverrideActionBuilder
fn default() -> OverrideActionBuilder
source§impl PartialEq for OverrideActionBuilder
impl PartialEq for OverrideActionBuilder
source§fn eq(&self, other: &OverrideActionBuilder) -> bool
fn eq(&self, other: &OverrideActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OverrideActionBuilder
Auto Trait Implementations§
impl Freeze for OverrideActionBuilder
impl RefUnwindSafe for OverrideActionBuilder
impl Send for OverrideActionBuilder
impl Sync for OverrideActionBuilder
impl Unpin for OverrideActionBuilder
impl UnwindSafe for OverrideActionBuilder
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