Class CfnIPSetProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • name

      @Stability(Stable) public CfnIPSetProps.Builder name(String name)
      Sets the value of CfnIPSetProps.getName()
      Parameters:
      name - A friendly name or description of the IPSet . This parameter is required. You can't change the name of an IPSet after you create it.
      Returns:
      this
    • ipSetDescriptors

      @Stability(Stable) public CfnIPSetProps.Builder ipSetDescriptors(IResolvable ipSetDescriptors)
      Parameters:
      ipSetDescriptors - The IP address type ( IPV4 or IPV6 ) and the IP address range (in CIDR notation) that web requests originate from.
      Returns:
      this
    • ipSetDescriptors

      @Stability(Stable) public CfnIPSetProps.Builder ipSetDescriptors(List<? extends Object> ipSetDescriptors)
      Parameters:
      ipSetDescriptors - The IP address type ( IPV4 or IPV6 ) and the IP address range (in CIDR notation) that web requests originate from.
      Returns:
      this
    • build

      @Stability(Stable) public CfnIPSetProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnIPSetProps>
      Returns:
      a new instance of CfnIPSetProps
      Throws:
      NullPointerException - if any required attribute was not provided