Class CfnIPAMPrefixListResolverProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnIPAMPrefixListResolverProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIPAMPrefixListResolverProps>
- Enclosing interface:
CfnIPAMPrefixListResolverProps
@Stability(Stable)
public static final class CfnIPAMPrefixListResolverProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIPAMPrefixListResolverProps>
A builder for
CfnIPAMPrefixListResolverProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddressFamily(String addressFamily) Sets the value ofCfnIPAMPrefixListResolverProps.getAddressFamily()build()Builds the configured instance.description(String description) Sets the value ofCfnIPAMPrefixListResolverProps.getDescription()Sets the value ofCfnIPAMPrefixListResolverProps.getIpamId()Sets the value ofCfnIPAMPrefixListResolverProps.getRules()rules(IResolvable rules) Sets the value ofCfnIPAMPrefixListResolverProps.getRules()Sets the value ofCfnIPAMPrefixListResolverProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addressFamily
@Stability(Stable) public CfnIPAMPrefixListResolverProps.Builder addressFamily(String addressFamily) Sets the value ofCfnIPAMPrefixListResolverProps.getAddressFamily()- Parameters:
addressFamily- The address family of the address space in this Prefix List Resolver. This parameter is required. Either IPv4 or IPv6.- Returns:
this
-
description
Sets the value ofCfnIPAMPrefixListResolverProps.getDescription()- Parameters:
description- the value to be set.- Returns:
this
-
ipamId
Sets the value ofCfnIPAMPrefixListResolverProps.getIpamId()- Parameters:
ipamId- The Id of the IPAM this Prefix List Resolver is a part of.- Returns:
this
-
rules
Sets the value ofCfnIPAMPrefixListResolverProps.getRules()- Parameters:
rules- Rules define the business logic for selecting CIDRs from IPAM.- Returns:
this
-
rules
@Stability(Stable) public CfnIPAMPrefixListResolverProps.Builder rules(List<? extends Object> rules) Sets the value ofCfnIPAMPrefixListResolverProps.getRules()- Parameters:
rules- Rules define the business logic for selecting CIDRs from IPAM.- Returns:
this
-
tags
Sets the value ofCfnIPAMPrefixListResolverProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnIPAMPrefixListResolverProps>- Returns:
- a new instance of
CfnIPAMPrefixListResolverProps - Throws:
NullPointerException- if any required attribute was not provided
-