Interface AwsWafRegionalRuleGroupRulesDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsWafRegionalRuleGroupRulesDetails.Builder,
,AwsWafRegionalRuleGroupRulesDetails> SdkBuilder<AwsWafRegionalRuleGroupRulesDetails.Builder,
,AwsWafRegionalRuleGroupRulesDetails> SdkPojo
- Enclosing class:
AwsWafRegionalRuleGroupRulesDetails
@Mutable
@NotThreadSafe
public static interface AwsWafRegionalRuleGroupRulesDetails.Builder
extends SdkPojo, CopyableBuilder<AwsWafRegionalRuleGroupRulesDetails.Builder,AwsWafRegionalRuleGroupRulesDetails>
-
Method Summary
Modifier and TypeMethodDescriptionThe action that WAF should take on a web request when it matches the criteria defined in the rule.The action that WAF should take on a web request when it matches the criteria defined in the rule.If you define more than one rule in a web ACL, WAF evaluates each request against the rules in order based on the value ofPriority
.The ID for a rule.The type of rule in the rule group.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, sdkFieldNameToField, sdkFields
-
Method Details
-
action
AwsWafRegionalRuleGroupRulesDetails.Builder action(AwsWafRegionalRuleGroupRulesActionDetails action) The action that WAF should take on a web request when it matches the criteria defined in the rule.
- Parameters:
action
- The action that WAF should take on a web request when it matches the criteria defined in the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
default AwsWafRegionalRuleGroupRulesDetails.Builder action(Consumer<AwsWafRegionalRuleGroupRulesActionDetails.Builder> action) The action that WAF should take on a web request when it matches the criteria defined in the rule.
This is a convenience method that creates an instance of theAwsWafRegionalRuleGroupRulesActionDetails.Builder
avoiding the need to create one manually viaAwsWafRegionalRuleGroupRulesActionDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaction(AwsWafRegionalRuleGroupRulesActionDetails)
.- Parameters:
action
- a consumer that will call methods onAwsWafRegionalRuleGroupRulesActionDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
priority
If you define more than one rule in a web ACL, WAF evaluates each request against the rules in order based on the value of
Priority
.- Parameters:
priority
- If you define more than one rule in a web ACL, WAF evaluates each request against the rules in order based on the value ofPriority
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleId
The ID for a rule.
- Parameters:
ruleId
- The ID for a rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of rule in the rule group.
- Parameters:
type
- The type of rule in the rule group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-