Interface AwsWafRuleDetails.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AwsWafRuleDetails.Builder,,AwsWafRuleDetails> SdkBuilder<AwsWafRuleDetails.Builder,,AwsWafRuleDetails> SdkPojo
- Enclosing class:
AwsWafRuleDetails
-
Method Summary
Modifier and TypeMethodDescriptionmetricName(String metricName) The name of the metrics for this rule.A descriptive name for the rule.predicateList(Collection<AwsWafRulePredicateListDetails> predicateList) Specifies theByteMatchSet,IPSet,SqlInjectionMatchSet,XssMatchSet,RegexMatchSet,GeoMatchSet, andSizeConstraintSetobjects that you want to add to a rule and, for each object, indicates whether you want to negate the settings.predicateList(Consumer<AwsWafRulePredicateListDetails.Builder>... predicateList) Specifies theByteMatchSet,IPSet,SqlInjectionMatchSet,XssMatchSet,RegexMatchSet,GeoMatchSet, andSizeConstraintSetobjects that you want to add to a rule and, for each object, indicates whether you want to negate the settings.predicateList(AwsWafRulePredicateListDetails... predicateList) Specifies theByteMatchSet,IPSet,SqlInjectionMatchSet,XssMatchSet,RegexMatchSet,GeoMatchSet, andSizeConstraintSetobjects that you want to add to a rule and, for each object, indicates whether you want to negate the settings.The ID of the WAF rule.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
metricName
The name of the metrics for this rule.
- Parameters:
metricName- The name of the metrics for this rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
A descriptive name for the rule.
- Parameters:
name- A descriptive name for the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
predicateList
Specifies the
ByteMatchSet,IPSet,SqlInjectionMatchSet,XssMatchSet,RegexMatchSet,GeoMatchSet, andSizeConstraintSetobjects that you want to add to a rule and, for each object, indicates whether you want to negate the settings.- Parameters:
predicateList- Specifies theByteMatchSet,IPSet,SqlInjectionMatchSet,XssMatchSet,RegexMatchSet,GeoMatchSet, andSizeConstraintSetobjects that you want to add to a rule and, for each object, indicates whether you want to negate the settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
predicateList
Specifies the
ByteMatchSet,IPSet,SqlInjectionMatchSet,XssMatchSet,RegexMatchSet,GeoMatchSet, andSizeConstraintSetobjects that you want to add to a rule and, for each object, indicates whether you want to negate the settings.- Parameters:
predicateList- Specifies theByteMatchSet,IPSet,SqlInjectionMatchSet,XssMatchSet,RegexMatchSet,GeoMatchSet, andSizeConstraintSetobjects that you want to add to a rule and, for each object, indicates whether you want to negate the settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
predicateList
AwsWafRuleDetails.Builder predicateList(Consumer<AwsWafRulePredicateListDetails.Builder>... predicateList) Specifies the
This is a convenience method that creates an instance of theByteMatchSet,IPSet,SqlInjectionMatchSet,XssMatchSet,RegexMatchSet,GeoMatchSet, andSizeConstraintSetobjects that you want to add to a rule and, for each object, indicates whether you want to negate the settings.AwsWafRulePredicateListDetails.Builderavoiding the need to create one manually viaAwsWafRulePredicateListDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topredicateList(List<AwsWafRulePredicateListDetails>).- Parameters:
predicateList- a consumer that will call methods onAwsWafRulePredicateListDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleId
The ID of the WAF rule.
- Parameters:
ruleId- The ID of the WAF rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-