Interface RuleSummary.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RuleSummary.Builder,RuleSummary>,SdkBuilder<RuleSummary.Builder,RuleSummary>,SdkPojo
- Enclosing class:
- RuleSummary
public static interface RuleSummary.Builder extends SdkPojo, CopyableBuilder<RuleSummary.Builder,RuleSummary>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default RuleSummary.Builderaction(Consumer<RuleAction.Builder> action)The action that WAF should take on a web request when it matches a rule's statement.RuleSummary.Builderaction(RuleAction action)The action that WAF should take on a web request when it matches a rule's statement.RuleSummary.Buildername(String name)The name of the 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
-
name
RuleSummary.Builder name(String name)
The name of the rule.
- Parameters:
name- The name of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
RuleSummary.Builder action(RuleAction action)
The action that WAF should take on a web request when it matches a rule's statement. Settings at the web ACL level can override the rule action setting.
- Parameters:
action- The action that WAF should take on a web request when it matches a rule's statement. Settings at the web ACL level can override the rule action setting.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
default RuleSummary.Builder action(Consumer<RuleAction.Builder> action)
The action that WAF should take on a web request when it matches a rule's statement. Settings at the web ACL level can override the rule action setting.
This is a convenience method that creates an instance of theRuleAction.Builderavoiding the need to create one manually viaRuleAction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaction(RuleAction).- Parameters:
action- a consumer that will call methods onRuleAction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
action(RuleAction)
-
-