Class VpnConnectionAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.VpnConnectionAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpnConnectionAttributes>
- Enclosing interface:
VpnConnectionAttributes
@Stability(Stable)
public static final class VpnConnectionAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<VpnConnectionAttributes>
A builder for
VpnConnectionAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.customerGatewayAsn(Number customerGatewayAsn) Sets the value ofVpnConnectionAttributes.getCustomerGatewayAsn()customerGatewayId(String customerGatewayId) Sets the value ofVpnConnectionAttributes.getCustomerGatewayId()customerGatewayIp(String customerGatewayIp) Sets the value ofVpnConnectionAttributes.getCustomerGatewayIp()Sets the value ofVpnConnectionAttributes.getVpnId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customerGatewayAsn
@Stability(Stable) public VpnConnectionAttributes.Builder customerGatewayAsn(Number customerGatewayAsn) Sets the value ofVpnConnectionAttributes.getCustomerGatewayAsn()- Parameters:
customerGatewayAsn- The ASN of the customer gateway. This parameter is required.- Returns:
this
-
customerGatewayId
@Stability(Stable) public VpnConnectionAttributes.Builder customerGatewayId(String customerGatewayId) Sets the value ofVpnConnectionAttributes.getCustomerGatewayId()- Parameters:
customerGatewayId- The id of the customer gateway. This parameter is required.- Returns:
this
-
customerGatewayIp
@Stability(Stable) public VpnConnectionAttributes.Builder customerGatewayIp(String customerGatewayIp) Sets the value ofVpnConnectionAttributes.getCustomerGatewayIp()- Parameters:
customerGatewayIp- The ip address of the customer gateway. This parameter is required.- Returns:
this
-
vpnId
Sets the value ofVpnConnectionAttributes.getVpnId()- Parameters:
vpnId- The id of the VPN connection. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VpnConnectionAttributes>- Returns:
- a new instance of
VpnConnectionAttributes - Throws:
NullPointerException- if any required attribute was not provided
-