Class CfnSizeConstraintSet.Builder

java.lang.Object
software.amazon.awscdk.services.waf.CfnSizeConstraintSet.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSizeConstraintSet>
Enclosing class:
CfnSizeConstraintSet

@Stability(Stable) public static final class CfnSizeConstraintSet.Builder extends Object implements software.amazon.jsii.Builder<CfnSizeConstraintSet>
A fluent builder for CfnSizeConstraintSet.
  • Method Details

    • create

      @Stability(Stable) public static CfnSizeConstraintSet.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnSizeConstraintSet.Builder.
    • name

      @Stability(Stable) public CfnSizeConstraintSet.Builder name(String name)
      The name, if any, of the SizeConstraintSet .

      Parameters:
      name - The name, if any, of the SizeConstraintSet . This parameter is required.
      Returns:
      this
    • sizeConstraints

      @Stability(Stable) public CfnSizeConstraintSet.Builder sizeConstraints(IResolvable sizeConstraints)
      The size constraint and the part of the web request to check.

      Parameters:
      sizeConstraints - The size constraint and the part of the web request to check. This parameter is required.
      Returns:
      this
    • sizeConstraints

      @Stability(Stable) public CfnSizeConstraintSet.Builder sizeConstraints(List<? extends Object> sizeConstraints)
      The size constraint and the part of the web request to check.

      Parameters:
      sizeConstraints - The size constraint and the part of the web request to check. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnSizeConstraintSet build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnSizeConstraintSet>
      Returns:
      a newly built instance of CfnSizeConstraintSet.