pub struct Builder { /* private fields */ }
Expand description
A builder for AwsWafRateBasedRuleMatchPredicate
.
Implementations§
source§impl Builder
impl Builder
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 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 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 build(self) -> AwsWafRateBasedRuleMatchPredicate
pub fn build(self) -> AwsWafRateBasedRuleMatchPredicate
Consumes the builder and constructs a AwsWafRateBasedRuleMatchPredicate
.