Interface AwsWafRegionalRuleDetails.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AwsWafRegionalRuleDetails.Builder,,AwsWafRegionalRuleDetails> SdkBuilder<AwsWafRegionalRuleDetails.Builder,,AwsWafRegionalRuleDetails> SdkPojo
- Enclosing class:
AwsWafRegionalRuleDetails
-
Method Summary
Modifier and TypeMethodDescriptionmetricName(String metricName) A name for the metrics for the rule.A descriptive name for the rule.predicateList(Collection<AwsWafRegionalRulePredicateListDetails> 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<AwsWafRegionalRulePredicateListDetails.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(AwsWafRegionalRulePredicateListDetails... 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 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
A name for the metrics for the rule.
- Parameters:
metricName- A name for the metrics for the 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
AwsWafRegionalRuleDetails.Builder predicateList(Collection<AwsWafRegionalRulePredicateListDetails> 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
AwsWafRegionalRuleDetails.Builder predicateList(AwsWafRegionalRulePredicateListDetails... 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
AwsWafRegionalRuleDetails.Builder predicateList(Consumer<AwsWafRegionalRulePredicateListDetails.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.AwsWafRegionalRulePredicateListDetails.Builderavoiding the need to create one manually viaAwsWafRegionalRulePredicateListDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topredicateList(List<AwsWafRegionalRulePredicateListDetails>).- Parameters:
predicateList- a consumer that will call methods onAwsWafRegionalRulePredicateListDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleId
The ID of the rule.
- Parameters:
ruleId- The ID of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-