Struct aws_sdk_securityhub::types::builders::AwsWafRegionalRateBasedRuleMatchPredicateBuilder
source · #[non_exhaustive]pub struct AwsWafRegionalRateBasedRuleMatchPredicateBuilder { /* private fields */ }Expand description
A builder for AwsWafRegionalRateBasedRuleMatchPredicate.
Implementations§
source§impl AwsWafRegionalRateBasedRuleMatchPredicateBuilder
impl AwsWafRegionalRateBasedRuleMatchPredicateBuilder
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) -> AwsWafRegionalRateBasedRuleMatchPredicate
pub fn build(self) -> AwsWafRegionalRateBasedRuleMatchPredicate
Consumes the builder and constructs a AwsWafRegionalRateBasedRuleMatchPredicate.
Trait Implementations§
source§impl Clone for AwsWafRegionalRateBasedRuleMatchPredicateBuilder
impl Clone for AwsWafRegionalRateBasedRuleMatchPredicateBuilder
source§fn clone(&self) -> AwsWafRegionalRateBasedRuleMatchPredicateBuilder
fn clone(&self) -> AwsWafRegionalRateBasedRuleMatchPredicateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AwsWafRegionalRateBasedRuleMatchPredicateBuilder
impl Default for AwsWafRegionalRateBasedRuleMatchPredicateBuilder
source§fn default() -> AwsWafRegionalRateBasedRuleMatchPredicateBuilder
fn default() -> AwsWafRegionalRateBasedRuleMatchPredicateBuilder
source§impl PartialEq for AwsWafRegionalRateBasedRuleMatchPredicateBuilder
impl PartialEq for AwsWafRegionalRateBasedRuleMatchPredicateBuilder
source§fn eq(&self, other: &AwsWafRegionalRateBasedRuleMatchPredicateBuilder) -> bool
fn eq(&self, other: &AwsWafRegionalRateBasedRuleMatchPredicateBuilder) -> bool
self and other values to be equal, and is used
by ==.