Class NetworkManagementConnectivityTestSource.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.network_management_connectivity_test.NetworkManagementConnectivityTestSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkManagementConnectivityTestSource>
- Enclosing interface:
- NetworkManagementConnectivityTestSource
@Stability(Stable) public static final class NetworkManagementConnectivityTestSource.Builder extends Object implements software.amazon.jsii.Builder<NetworkManagementConnectivityTestSource>
A builder forNetworkManagementConnectivityTestSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
instance
@Stability(Stable) public NetworkManagementConnectivityTestSource.Builder instance(String instance)
Sets the value ofNetworkManagementConnectivityTestSource.getInstance()- Parameters:
instance- A Compute Engine instance URI. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_management_connectivity_test#instance NetworkManagementConnectivityTest#instance}- Returns:
this
-
ipAddress
@Stability(Stable) public NetworkManagementConnectivityTestSource.Builder ipAddress(String ipAddress)
Sets the value ofNetworkManagementConnectivityTestSource.getIpAddress()- Parameters:
ipAddress- The IP address of the endpoint, which can be an external or internal IP. An IPv6 address is only allowed when the test's destination is a global load balancer VIP. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_management_connectivity_test#ip_address NetworkManagementConnectivityTest#ip_address}- Returns:
this
-
network
@Stability(Stable) public NetworkManagementConnectivityTestSource.Builder network(String network)
Sets the value ofNetworkManagementConnectivityTestSource.getNetwork()- Parameters:
network- A Compute Engine network URI. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_management_connectivity_test#network NetworkManagementConnectivityTest#network}- Returns:
this
-
networkType
@Stability(Stable) public NetworkManagementConnectivityTestSource.Builder networkType(String networkType)
Sets the value ofNetworkManagementConnectivityTestSource.getNetworkType()- Parameters:
networkType- Type of the network where the endpoint is located. Possible values: ["GCP_NETWORK", "NON_GCP_NETWORK"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_management_connectivity_test#network_type NetworkManagementConnectivityTest#network_type}- Returns:
this
-
port
@Stability(Stable) public NetworkManagementConnectivityTestSource.Builder port(Number port)
Sets the value ofNetworkManagementConnectivityTestSource.getPort()- Parameters:
port- The IP protocol port of the endpoint. Only applicable when protocol is TCP or UDP. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_management_connectivity_test#port NetworkManagementConnectivityTest#port}- Returns:
this
-
projectId
@Stability(Stable) public NetworkManagementConnectivityTestSource.Builder projectId(String projectId)
Sets the value ofNetworkManagementConnectivityTestSource.getProjectId()- Parameters:
projectId- Project ID where the endpoint is located. The Project ID can be derived from the URI if you provide a VM instance or network URI. The following are two cases where you must provide the project ID: 1. Only the IP address is specified, and the IP address is within a GCP project. 2. When you are using Shared VPC and the IP address that you provide is from the service project. In this case, the network that the IP address resides in is defined in the host project. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_management_connectivity_test#project_id NetworkManagementConnectivityTest#project_id}- Returns:
this
-
build
@Stability(Stable) public NetworkManagementConnectivityTestSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetworkManagementConnectivityTestSource>- Returns:
- a new instance of
NetworkManagementConnectivityTestSource - Throws:
NullPointerException- if any required attribute was not provided
-
-