Class CfnIPSetProps.Builder

java.lang.Object
software.amazon.awscdk.services.waf.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 - The name 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. If the WebACL is associated with an Amazon CloudFront distribution and the viewer did not use an HTTP proxy or a load balancer to send the request, this is the value of the c-ip field in the CloudFront access logs.
      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. If the WebACL is associated with an Amazon CloudFront distribution and the viewer did not use an HTTP proxy or a load balancer to send the request, this is the value of the c-ip field in the CloudFront access logs.
      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