Class CfnLoggingConfiguration.FilterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnLoggingConfiguration.FilterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLoggingConfiguration.FilterProperty>
- Enclosing interface:
CfnLoggingConfiguration.FilterProperty
@Stability(Stable)
public static final class CfnLoggingConfiguration.FilterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLoggingConfiguration.FilterProperty>
A builder for
CfnLoggingConfiguration.FilterProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnLoggingConfiguration.FilterProperty.getBehavior()build()Builds the configured instance.conditions(List<? extends Object> conditions) Sets the value ofCfnLoggingConfiguration.FilterProperty.getConditions()conditions(IResolvable conditions) Sets the value ofCfnLoggingConfiguration.FilterProperty.getConditions()requirement(String requirement) Sets the value ofCfnLoggingConfiguration.FilterProperty.getRequirement()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
behavior
Sets the value ofCfnLoggingConfiguration.FilterProperty.getBehavior()- Parameters:
behavior- How to handle logs that satisfy the filter's conditions and requirement. This parameter is required.- Returns:
this
-
conditions
@Stability(Stable) public CfnLoggingConfiguration.FilterProperty.Builder conditions(IResolvable conditions) Sets the value ofCfnLoggingConfiguration.FilterProperty.getConditions()- Parameters:
conditions- Match conditions for the filter. This parameter is required.- Returns:
this
-
conditions
@Stability(Stable) public CfnLoggingConfiguration.FilterProperty.Builder conditions(List<? extends Object> conditions) Sets the value ofCfnLoggingConfiguration.FilterProperty.getConditions()- Parameters:
conditions- Match conditions for the filter. This parameter is required.- Returns:
this
-
requirement
@Stability(Stable) public CfnLoggingConfiguration.FilterProperty.Builder requirement(String requirement) Sets the value ofCfnLoggingConfiguration.FilterProperty.getRequirement()- Parameters:
requirement- Logic to apply to the filtering conditions. This parameter is required. You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLoggingConfiguration.FilterProperty>- Returns:
- a new instance of
CfnLoggingConfiguration.FilterProperty - Throws:
NullPointerException- if any required attribute was not provided
-