Class ComputeExternalVpnGatewayInterface.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_external_vpn_gateway.ComputeExternalVpnGatewayInterface.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeExternalVpnGatewayInterface>
- Enclosing interface:
- ComputeExternalVpnGatewayInterface
@Stability(Stable) public static final class ComputeExternalVpnGatewayInterface.Builder extends Object implements software.amazon.jsii.Builder<ComputeExternalVpnGatewayInterface>
A builder forComputeExternalVpnGatewayInterface
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeExternalVpnGatewayInterfacebuild()Builds the configured instance.ComputeExternalVpnGatewayInterface.Builderid(Number id)Sets the value ofComputeExternalVpnGatewayInterface.getId()ComputeExternalVpnGatewayInterface.BuilderipAddress(String ipAddress)Sets the value ofComputeExternalVpnGatewayInterface.getIpAddress()
-
-
-
Method Detail
-
id
@Stability(Stable) public ComputeExternalVpnGatewayInterface.Builder id(Number id)
Sets the value ofComputeExternalVpnGatewayInterface.getId()- Parameters:
id- The numeric ID for this interface. Allowed values are based on the redundancy type of this external VPN gateway * '0 - SINGLE_IP_INTERNALLY_REDUNDANT' * '0, 1 - TWO_IPS_REDUNDANCY' * '0, 1, 2, 3 - FOUR_IPS_REDUNDANCY' Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_external_vpn_gateway#id ComputeExternalVpnGateway#id} Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
ipAddress
@Stability(Stable) public ComputeExternalVpnGatewayInterface.Builder ipAddress(String ipAddress)
Sets the value ofComputeExternalVpnGatewayInterface.getIpAddress()- Parameters:
ipAddress- IP address of the interface in the external VPN gateway. Only IPv4 is supported. This IP address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address from Google Compute Engine. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_external_vpn_gateway#ip_address ComputeExternalVpnGateway#ip_address}- Returns:
this
-
build
@Stability(Stable) public ComputeExternalVpnGatewayInterface build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeExternalVpnGatewayInterface>- Returns:
- a new instance of
ComputeExternalVpnGatewayInterface - Throws:
NullPointerException- if any required attribute was not provided
-
-