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 Summary
-
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
- A friendly name or description of theIPSet
. This parameter is required. You can't change the name of anIPSet
after you create it.- Returns:
this
-
ipSetDescriptors
Sets the value ofCfnIPSetProps.getIpSetDescriptors()
- Parameters:
ipSetDescriptors
- The IP address type (IPV4
orIPV6
) 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) Sets the value ofCfnIPSetProps.getIpSetDescriptors()
- Parameters:
ipSetDescriptors
- The IP address type (IPV4
orIPV6
) and the IP address range (in CIDR notation) that web requests originate from.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnIPSetProps>
- Returns:
- a new instance of
CfnIPSetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-