#[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 ==
.