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