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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.ipSetDescriptors(List<? extends Object> ipSetDescriptors) Sets the value ofCfnIPSetProps.getIpSetDescriptors()ipSetDescriptors(IResolvable ipSetDescriptors) Sets the value ofCfnIPSetProps.getIpSetDescriptors()Sets the value ofCfnIPSetProps.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnIPSetProps.getName()- Parameters:
name- The name of theIPSet. This parameter is required. You can't change the name of anIPSetafter you create it.- Returns:
this
-
ipSetDescriptors
Sets the value ofCfnIPSetProps.getIpSetDescriptors()- Parameters:
ipSetDescriptors- The IP address type (IPV4orIPV6) and the IP address range (in CIDR notation) that web requests originate from. If theWebACLis 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) Sets the value ofCfnIPSetProps.getIpSetDescriptors()- Parameters:
ipSetDescriptors- The IP address type (IPV4orIPV6) and the IP address range (in CIDR notation) that web requests originate from. If theWebACLis 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
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnIPSetProps>- Returns:
- a new instance of
CfnIPSetProps - Throws:
NullPointerException- if any required attribute was not provided
-