Interface WafConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<WafConfig.Builder,,WafConfig> SdkBuilder<WafConfig.Builder,,WafConfig> SdkPojo
- Enclosing class:
WafConfig
@Mutable
@NotThreadSafe
public static interface WafConfig.Builder
extends SdkPojo, CopyableBuilder<WafConfig.Builder,WafConfig>
-
Method Summary
Modifier and TypeMethodDescriptionisWafEnabled(Boolean isWafEnabled) Specifies whether WAF is enabled for the distribution.wafRules(Collection<WafRule> wafRules) An array of objects that describe the WAF rule groups enabled for the distribution.wafRules(Consumer<WafRule.Builder>... wafRules) An array of objects that describe the WAF rule groups enabled for the distribution.An array of objects that describe the WAF rule groups enabled for the distribution.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
-
isWafEnabled
Specifies whether WAF is enabled for the distribution.
- Parameters:
isWafEnabled- Specifies whether WAF is enabled for the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
wafRules
An array of objects that describe the WAF rule groups enabled for the distribution.
- Parameters:
wafRules- An array of objects that describe the WAF rule groups enabled for the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
wafRules
An array of objects that describe the WAF rule groups enabled for the distribution.
- Parameters:
wafRules- An array of objects that describe the WAF rule groups enabled for the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
wafRules
An array of objects that describe the WAF rule groups enabled for the distribution.
This is a convenience method that creates an instance of theWafRule.Builderavoiding the need to create one manually viaWafRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed towafRules(List<WafRule>).- Parameters:
wafRules- a consumer that will call methods onWafRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-