Class InternetGatewayOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.alpha.InternetGatewayOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<InternetGatewayOptions>
- Enclosing interface:
InternetGatewayOptions
@Stability(Experimental)
public static final class InternetGatewayOptions.Builder
extends Object
implements software.amazon.jsii.Builder<InternetGatewayOptions>
A builder for
InternetGatewayOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.internetGatewayName(String internetGatewayName) Sets the value ofInternetGatewayOptions.getInternetGatewayName()ipv4Destination(String ipv4Destination) Sets the value ofInternetGatewayOptions.getIpv4Destination()ipv6Destination(String ipv6Destination) Sets the value ofInternetGatewayOptions.getIpv6Destination()subnets(List<? extends SubnetSelection> subnets) Sets the value ofInternetGatewayOptions.getSubnets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
internetGatewayName
@Stability(Experimental) public InternetGatewayOptions.Builder internetGatewayName(String internetGatewayName) Sets the value ofInternetGatewayOptions.getInternetGatewayName()- Parameters:
internetGatewayName- The resource name of the internet gateway. Provided name will be used for tagging- Returns:
this
-
ipv4Destination
@Stability(Experimental) public InternetGatewayOptions.Builder ipv4Destination(String ipv4Destination) Sets the value ofInternetGatewayOptions.getIpv4Destination()- Parameters:
ipv4Destination- Destination Ipv6 address for EGW route.- Returns:
this
-
ipv6Destination
@Stability(Experimental) public InternetGatewayOptions.Builder ipv6Destination(String ipv6Destination) Sets the value ofInternetGatewayOptions.getIpv6Destination()- Parameters:
ipv6Destination- Destination Ipv6 address for EGW route.- Returns:
this
-
subnets
@Stability(Experimental) public InternetGatewayOptions.Builder subnets(List<? extends SubnetSelection> subnets) Sets the value ofInternetGatewayOptions.getSubnets()- Parameters:
subnets- List of subnets where route to IGW will be added.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<InternetGatewayOptions>- Returns:
- a new instance of
InternetGatewayOptions - Throws:
NullPointerException- if any required attribute was not provided
-