Interface RuleSummary.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RuleSummary.Builder,,RuleSummary> SdkBuilder<RuleSummary.Builder,,RuleSummary> SdkPojo
- Enclosing class:
RuleSummary
@Mutable
@NotThreadSafe
public static interface RuleSummary.Builder
extends SdkPojo, CopyableBuilder<RuleSummary.Builder,RuleSummary>
-
Method Summary
Modifier and TypeMethodDescriptiondefault RuleSummary.Builderaction(Consumer<RuleAction.Builder> action) The action that WAF should take on a web request when it matches a rule's statement.action(RuleAction action) The action that WAF should take on a web request when it matches a rule's statement.The name 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, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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:
-