Class CfnCustomerGatewayMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnCustomerGatewayMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCustomerGatewayMixinProps>
- Enclosing interface:
CfnCustomerGatewayMixinProps
@Stability(Stable)
public static final class CfnCustomerGatewayMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCustomerGatewayMixinProps>
A builder for
CfnCustomerGatewayMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnCustomerGatewayMixinProps.getBgpAsn()bgpAsnExtended(Number bgpAsnExtended) Sets the value ofCfnCustomerGatewayMixinProps.getBgpAsnExtended()build()Builds the configured instance.certificateArn(String certificateArn) Sets the value ofCfnCustomerGatewayMixinProps.getCertificateArn()deviceName(String deviceName) Sets the value ofCfnCustomerGatewayMixinProps.getDeviceName()Sets the value ofCfnCustomerGatewayMixinProps.getIpAddress()Sets the value ofCfnCustomerGatewayMixinProps.getTags()Sets the value ofCfnCustomerGatewayMixinProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bgpAsn
Sets the value ofCfnCustomerGatewayMixinProps.getBgpAsn()- Parameters:
bgpAsn- For customer gateway devices that support BGP, specify the device's ASN. You must specify eitherBgpAsnorBgpAsnExtendedwhen creating the customer gateway. If the ASN is larger than2,147,483,647, you must useBgpAsnExtended.Default: 65000
Valid values:
1to2,147,483,647- Returns:
this
-
bgpAsnExtended
@Stability(Stable) public CfnCustomerGatewayMixinProps.Builder bgpAsnExtended(Number bgpAsnExtended) Sets the value ofCfnCustomerGatewayMixinProps.getBgpAsnExtended()- Parameters:
bgpAsnExtended- For customer gateway devices that support BGP, specify the device's ASN. You must specify eitherBgpAsnorBgpAsnExtendedwhen creating the customer gateway. If the ASN is larger than2,147,483,647, you must useBgpAsnExtended.Valid values:
2,147,483,648to4,294,967,295- Returns:
this
-
certificateArn
@Stability(Stable) public CfnCustomerGatewayMixinProps.Builder certificateArn(String certificateArn) Sets the value ofCfnCustomerGatewayMixinProps.getCertificateArn()- Parameters:
certificateArn- The Amazon Resource Name (ARN) for the customer gateway certificate.- Returns:
this
-
deviceName
Sets the value ofCfnCustomerGatewayMixinProps.getDeviceName()- Parameters:
deviceName- The name of customer gateway device.- Returns:
this
-
ipAddress
Sets the value ofCfnCustomerGatewayMixinProps.getIpAddress()- Parameters:
ipAddress- The IP address for the customer gateway device's outside interface. The address must be static. IfOutsideIpAddressTypein your VPN connection options is set toPrivateIpv4, you can use an RFC6598 or RFC1918 private IPv4 address. IfOutsideIpAddressTypeis set toIpv6, you can use an IPv6 address.- Returns:
this
-
tags
Sets the value ofCfnCustomerGatewayMixinProps.getTags()- Parameters:
tags- One or more tags for the customer gateway.- Returns:
this
-
type
Sets the value ofCfnCustomerGatewayMixinProps.getType()- Parameters:
type- The type of VPN connection that this customer gateway supports (ipsec.1).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCustomerGatewayMixinProps>- Returns:
- a new instance of
CfnCustomerGatewayMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-