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
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnCustomerGatewayProps.getBgpAsn()
bgpAsnExtended
(Number bgpAsnExtended) Sets the value ofCfnCustomerGatewayProps.getBgpAsnExtended()
build()
Builds the configured instance.certificateArn
(String certificateArn) Sets the value ofCfnCustomerGatewayProps.getCertificateArn()
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
-
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. IfOutsideIpAddressType
in your VPN connection options is set toPrivateIpv4
, you can use an RFC6598 or RFC1918 private IPv4 address. IfOutsideIpAddressType
is set toPublicIpv4
, you can use a public IPv4 address.- 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
-
bgpAsn
Sets the value ofCfnCustomerGatewayProps.getBgpAsn()
- Parameters:
bgpAsn
- For customer gateway devices that support BGP, specify the device's ASN. You must specify eitherBgpAsn
orBgpAsnExtended
when creating the customer gateway. If the ASN is larger than2,147,483,647
, you must useBgpAsnExtended
.Default: 65000
Valid values:
1
to2,147,483,647
- Returns:
this
-
bgpAsnExtended
Sets the value ofCfnCustomerGatewayProps.getBgpAsnExtended()
- Parameters:
bgpAsnExtended
- For customer gateway devices that support BGP, specify the device's ASN. You must specify eitherBgpAsn
orBgpAsnExtended
when creating the customer gateway. If the ASN is larger than2,147,483,647
, you must useBgpAsnExtended
.Valid values:
2,147,483,648
to4,294,967,295
- Returns:
this
-
certificateArn
Sets the value ofCfnCustomerGatewayProps.getCertificateArn()
- Parameters:
certificateArn
- The Amazon Resource Name (ARN) for the customer gateway certificate.- 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnCustomerGatewayProps>
- Returns:
- a new instance of
CfnCustomerGatewayProps
- Throws:
NullPointerException
- if any required attribute was not provided
-