Class CfnSizeConstraintSetProps.Builder
java.lang.Object
software.amazon.awscdk.services.waf.CfnSizeConstraintSetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSizeConstraintSetProps>
- Enclosing interface:
- CfnSizeConstraintSetProps
@Stability(Stable)
public static final class CfnSizeConstraintSetProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSizeConstraintSetProps>
A builder for
CfnSizeConstraintSetProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSizeConstraintSetProps.getName()sizeConstraints(List<? extends Object> sizeConstraints) Sets the value ofCfnSizeConstraintSetProps.getSizeConstraints()sizeConstraints(IResolvable sizeConstraints) Sets the value ofCfnSizeConstraintSetProps.getSizeConstraints()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnSizeConstraintSetProps.getName()- Parameters:
name- The name, if any, of theSizeConstraintSet. This parameter is required.- Returns:
this
-
sizeConstraints
@Stability(Stable) public CfnSizeConstraintSetProps.Builder sizeConstraints(IResolvable sizeConstraints) Sets the value ofCfnSizeConstraintSetProps.getSizeConstraints()- Parameters:
sizeConstraints- The size constraint and the part of the web request to check. This parameter is required.- Returns:
this
-
sizeConstraints
@Stability(Stable) public CfnSizeConstraintSetProps.Builder sizeConstraints(List<? extends Object> sizeConstraints) Sets the value ofCfnSizeConstraintSetProps.getSizeConstraints()- Parameters:
sizeConstraints- The size constraint and the part of the web request to check. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSizeConstraintSetProps>- Returns:
- a new instance of
CfnSizeConstraintSetProps - Throws:
NullPointerException- if any required attribute was not provided
-