Class CfnIPSet.Builder

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

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

    • create

      @Stability(Stable) public static CfnIPSet.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 CfnIPSet.Builder.
    • name

      @Stability(Stable) public CfnIPSet.Builder name(String name)
      A friendly name or description of the IPSet .

      You can't change the name of an IPSet after you create it.

      Parameters:
      name - A friendly name or description of the IPSet . This parameter is required.
      Returns:
      this
    • ipSetDescriptors

      @Stability(Stable) public CfnIPSet.Builder ipSetDescriptors(IResolvable ipSetDescriptors)
      The IP address type ( IPV4 or IPV6 ) and the IP address range (in CIDR notation) that web requests originate from.

      Parameters:
      ipSetDescriptors - The IP address type ( IPV4 or IPV6 ) and the IP address range (in CIDR notation) that web requests originate from. This parameter is required.
      Returns:
      this
    • ipSetDescriptors

      @Stability(Stable) public CfnIPSet.Builder ipSetDescriptors(List<? extends Object> ipSetDescriptors)
      The IP address type ( IPV4 or IPV6 ) and the IP address range (in CIDR notation) that web requests originate from.

      Parameters:
      ipSetDescriptors - The IP address type ( IPV4 or IPV6 ) and the IP address range (in CIDR notation) that web requests originate from. This parameter is required.
      Returns:
      this
    • build

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