Class CfnCidrCollection.LocationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.route53.CfnCidrCollection.LocationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCidrCollection.LocationProperty>
- Enclosing interface:
CfnCidrCollection.LocationProperty
@Stability(Stable)
public static final class CfnCidrCollection.LocationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCidrCollection.LocationProperty>
A builder for
CfnCidrCollection.LocationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnCidrCollection.LocationProperty.getCidrList()
locationName
(String locationName) Sets the value ofCfnCidrCollection.LocationProperty.getLocationName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cidrList
@Stability(Stable) public CfnCidrCollection.LocationProperty.Builder cidrList(List<String> cidrList) Sets the value ofCfnCidrCollection.LocationProperty.getCidrList()
- Parameters:
cidrList
- List of CIDR blocks. This parameter is required.- Returns:
this
-
locationName
@Stability(Stable) public CfnCidrCollection.LocationProperty.Builder locationName(String locationName) Sets the value ofCfnCidrCollection.LocationProperty.getLocationName()
- Parameters:
locationName
- The CIDR collection location name. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCidrCollection.LocationProperty>
- Returns:
- a new instance of
CfnCidrCollection.LocationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-