#[non_exhaustive]pub struct AwsWafRuleDetailsBuilder { /* private fields */ }
Expand description
A builder for AwsWafRuleDetails
.
Implementations§
source§impl AwsWafRuleDetailsBuilder
impl AwsWafRuleDetailsBuilder
sourcepub fn metric_name(self, input: impl Into<String>) -> Self
pub fn metric_name(self, input: impl Into<String>) -> Self
The name of the metrics for this rule.
sourcepub fn set_metric_name(self, input: Option<String>) -> Self
pub fn set_metric_name(self, input: Option<String>) -> Self
The name of the metrics for this rule.
sourcepub fn get_metric_name(&self) -> &Option<String>
pub fn get_metric_name(&self) -> &Option<String>
The name of the metrics for this rule.
sourcepub fn predicate_list(self, input: AwsWafRulePredicateListDetails) -> Self
pub fn predicate_list(self, input: AwsWafRulePredicateListDetails) -> Self
Appends an item to predicate_list
.
To override the contents of this collection use set_predicate_list
.
Specifies the ByteMatchSet
, IPSet
, SqlInjectionMatchSet
, XssMatchSet
, RegexMatchSet
, GeoMatchSet
, and SizeConstraintSet
objects that you want to add to a rule and, for each object, indicates whether you want to negate the settings.
sourcepub fn set_predicate_list(
self,
input: Option<Vec<AwsWafRulePredicateListDetails>>
) -> Self
pub fn set_predicate_list( self, input: Option<Vec<AwsWafRulePredicateListDetails>> ) -> Self
Specifies the ByteMatchSet
, IPSet
, SqlInjectionMatchSet
, XssMatchSet
, RegexMatchSet
, GeoMatchSet
, and SizeConstraintSet
objects that you want to add to a rule and, for each object, indicates whether you want to negate the settings.
sourcepub fn get_predicate_list(&self) -> &Option<Vec<AwsWafRulePredicateListDetails>>
pub fn get_predicate_list(&self) -> &Option<Vec<AwsWafRulePredicateListDetails>>
Specifies the ByteMatchSet
, IPSet
, SqlInjectionMatchSet
, XssMatchSet
, RegexMatchSet
, GeoMatchSet
, and SizeConstraintSet
objects that you want to add to a rule and, for each object, indicates whether you want to negate the settings.
sourcepub fn set_rule_id(self, input: Option<String>) -> Self
pub fn set_rule_id(self, input: Option<String>) -> Self
The ID of the WAF rule.
sourcepub fn get_rule_id(&self) -> &Option<String>
pub fn get_rule_id(&self) -> &Option<String>
The ID of the WAF rule.
sourcepub fn build(self) -> AwsWafRuleDetails
pub fn build(self) -> AwsWafRuleDetails
Consumes the builder and constructs a AwsWafRuleDetails
.
Trait Implementations§
source§impl Clone for AwsWafRuleDetailsBuilder
impl Clone for AwsWafRuleDetailsBuilder
source§fn clone(&self) -> AwsWafRuleDetailsBuilder
fn clone(&self) -> AwsWafRuleDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AwsWafRuleDetailsBuilder
impl Debug for AwsWafRuleDetailsBuilder
source§impl Default for AwsWafRuleDetailsBuilder
impl Default for AwsWafRuleDetailsBuilder
source§fn default() -> AwsWafRuleDetailsBuilder
fn default() -> AwsWafRuleDetailsBuilder
source§impl PartialEq for AwsWafRuleDetailsBuilder
impl PartialEq for AwsWafRuleDetailsBuilder
source§fn eq(&self, other: &AwsWafRuleDetailsBuilder) -> bool
fn eq(&self, other: &AwsWafRuleDetailsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.