#[non_exhaustive]pub struct AwsWafRateBasedRuleMatchPredicateBuilder { /* private fields */ }
Expand description
A builder for AwsWafRateBasedRuleMatchPredicate
.
Implementations§
source§impl AwsWafRateBasedRuleMatchPredicateBuilder
impl AwsWafRateBasedRuleMatchPredicateBuilder
sourcepub fn data_id(self, input: impl Into<String>) -> Self
pub fn data_id(self, input: impl Into<String>) -> Self
The unique identifier for the predicate.
sourcepub fn set_data_id(self, input: Option<String>) -> Self
pub fn set_data_id(self, input: Option<String>) -> Self
The unique identifier for the predicate.
sourcepub fn get_data_id(&self) -> &Option<String>
pub fn get_data_id(&self) -> &Option<String>
The unique identifier for the predicate.
sourcepub fn negated(self, input: bool) -> Self
pub fn negated(self, input: bool) -> Self
If set to true
, then the rule actions are performed on requests that match the predicate settings.
If set to false
, then the rule actions are performed on all requests except those that match the predicate settings.
sourcepub fn set_negated(self, input: Option<bool>) -> Self
pub fn set_negated(self, input: Option<bool>) -> Self
If set to true
, then the rule actions are performed on requests that match the predicate settings.
If set to false
, then the rule actions are performed on all requests except those that match the predicate settings.
sourcepub fn get_negated(&self) -> &Option<bool>
pub fn get_negated(&self) -> &Option<bool>
If set to true
, then the rule actions are performed on requests that match the predicate settings.
If set to false
, then the rule actions are performed on all requests except those that match the predicate settings.
sourcepub fn type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
The type of predicate. Valid values are as follows:
-
ByteMatch
-
GeoMatch
-
IPMatch
-
RegexMatch
-
SizeConstraint
-
SqlInjectionMatch
-
XssMatch
sourcepub fn set_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
The type of predicate. Valid values are as follows:
-
ByteMatch
-
GeoMatch
-
IPMatch
-
RegexMatch
-
SizeConstraint
-
SqlInjectionMatch
-
XssMatch
sourcepub fn get_type(&self) -> &Option<String>
pub fn get_type(&self) -> &Option<String>
The type of predicate. Valid values are as follows:
-
ByteMatch
-
GeoMatch
-
IPMatch
-
RegexMatch
-
SizeConstraint
-
SqlInjectionMatch
-
XssMatch
sourcepub fn build(self) -> AwsWafRateBasedRuleMatchPredicate
pub fn build(self) -> AwsWafRateBasedRuleMatchPredicate
Consumes the builder and constructs a AwsWafRateBasedRuleMatchPredicate
.
Trait Implementations§
source§impl Clone for AwsWafRateBasedRuleMatchPredicateBuilder
impl Clone for AwsWafRateBasedRuleMatchPredicateBuilder
source§fn clone(&self) -> AwsWafRateBasedRuleMatchPredicateBuilder
fn clone(&self) -> AwsWafRateBasedRuleMatchPredicateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AwsWafRateBasedRuleMatchPredicateBuilder
impl Default for AwsWafRateBasedRuleMatchPredicateBuilder
source§fn default() -> AwsWafRateBasedRuleMatchPredicateBuilder
fn default() -> AwsWafRateBasedRuleMatchPredicateBuilder
source§impl PartialEq for AwsWafRateBasedRuleMatchPredicateBuilder
impl PartialEq for AwsWafRateBasedRuleMatchPredicateBuilder
source§fn eq(&self, other: &AwsWafRateBasedRuleMatchPredicateBuilder) -> bool
fn eq(&self, other: &AwsWafRateBasedRuleMatchPredicateBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AwsWafRateBasedRuleMatchPredicateBuilder
Auto Trait Implementations§
impl Freeze for AwsWafRateBasedRuleMatchPredicateBuilder
impl RefUnwindSafe for AwsWafRateBasedRuleMatchPredicateBuilder
impl Send for AwsWafRateBasedRuleMatchPredicateBuilder
impl Sync for AwsWafRateBasedRuleMatchPredicateBuilder
impl Unpin for AwsWafRateBasedRuleMatchPredicateBuilder
impl UnwindSafe for AwsWafRateBasedRuleMatchPredicateBuilder
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