Interface AwsWafRuleDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AwsWafRuleDetails.Builder,AwsWafRuleDetails>,SdkBuilder<AwsWafRuleDetails.Builder,AwsWafRuleDetails>,SdkPojo
- Enclosing class:
- AwsWafRuleDetails
public static interface AwsWafRuleDetails.Builder extends SdkPojo, CopyableBuilder<AwsWafRuleDetails.Builder,AwsWafRuleDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AwsWafRuleDetails.BuildermetricName(String metricName)The name of the metrics for this rule.AwsWafRuleDetails.Buildername(String name)A descriptive name for the rule.AwsWafRuleDetails.BuilderpredicateList(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.AwsWafRuleDetails.BuilderpredicateList(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.AwsWafRuleDetails.BuilderpredicateList(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.AwsWafRuleDetails.BuilderruleId(String ruleId)The ID of the WAF rule.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
metricName
AwsWafRuleDetails.Builder metricName(String 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
AwsWafRuleDetails.Builder name(String 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
AwsWafRuleDetails.Builder predicateList(Collection<AwsWafRulePredicateListDetails> 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(AwsWafRulePredicateListDetails... 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 to#predicateList(List.) - 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:
#predicateList(java.util.Collection)
-
ruleId
AwsWafRuleDetails.Builder ruleId(String 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.
-
-