Class VpnGatewayProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.VpnGatewayProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpnGatewayProps>
- Enclosing interface:
VpnGatewayProps
@Stability(Stable)
public static final class VpnGatewayProps.Builder
extends Object
implements software.amazon.jsii.Builder<VpnGatewayProps>
A builder for
VpnGatewayProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamazonSideAsn(Number amazonSideAsn) Sets the value ofVpnGatewayProps.getAmazonSideAsn()build()Builds the configured instance.Sets the value ofVpnGatewayProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofVpnGatewayProps.getType()- Parameters:
type- Default type ipsec.1. This parameter is required.- Returns:
this
-
amazonSideAsn
Sets the value ofVpnGatewayProps.getAmazonSideAsn()- Parameters:
amazonSideAsn- Explicitly specify an Asn or let aws pick an Asn for you.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VpnGatewayProps>- Returns:
- a new instance of
VpnGatewayProps - Throws:
NullPointerException- if any required attribute was not provided
-