Class CfnCustomerGatewayProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnCustomerGatewayProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCustomerGatewayProps>
- Enclosing interface:
- CfnCustomerGatewayProps
@Stability(Stable)
public static final class CfnCustomerGatewayProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCustomerGatewayProps>
A builder for
CfnCustomerGatewayProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnCustomerGatewayProps.getBgpAsn()build()Builds the configured instance.deviceName(String deviceName) Sets the value ofCfnCustomerGatewayProps.getDeviceName()Sets the value ofCfnCustomerGatewayProps.getIpAddress()Sets the value ofCfnCustomerGatewayProps.getTags()Sets the value ofCfnCustomerGatewayProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bgpAsn
Sets the value ofCfnCustomerGatewayProps.getBgpAsn()- Parameters:
bgpAsn- For devices that support BGP, the customer gateway's BGP ASN. This parameter is required. Default: 65000- Returns:
this
-
ipAddress
Sets the value ofCfnCustomerGatewayProps.getIpAddress()- Parameters:
ipAddress- IPv4 address for the customer gateway device's outside interface. This parameter is required. The address must be static.- Returns:
this
-
type
Sets the value ofCfnCustomerGatewayProps.getType()- Parameters:
type- The type of VPN connection that this customer gateway supports (ipsec.1). This parameter is required.- Returns:
this
-
deviceName
Sets the value ofCfnCustomerGatewayProps.getDeviceName()- Parameters:
deviceName- The name of customer gateway device.- Returns:
this
-
tags
Sets the value ofCfnCustomerGatewayProps.getTags()- Parameters:
tags- One or more tags for the customer gateway.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCustomerGatewayProps>- Returns:
- a new instance of
CfnCustomerGatewayProps - Throws:
NullPointerException- if any required attribute was not provided
-