Class NetworkManagementConnectivityTestDestination.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.network_management_connectivity_test.NetworkManagementConnectivityTestDestination.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkManagementConnectivityTestDestination>
- Enclosing interface:
- NetworkManagementConnectivityTestDestination
@Stability(Stable) public static final class NetworkManagementConnectivityTestDestination.Builder extends Object implements software.amazon.jsii.Builder<NetworkManagementConnectivityTestDestination>
A builder forNetworkManagementConnectivityTestDestination
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkManagementConnectivityTestDestinationbuild()Builds the configured instance.NetworkManagementConnectivityTestDestination.Builderinstance(String instance)Sets the value ofNetworkManagementConnectivityTestDestination.getInstance()NetworkManagementConnectivityTestDestination.BuilderipAddress(String ipAddress)Sets the value ofNetworkManagementConnectivityTestDestination.getIpAddress()NetworkManagementConnectivityTestDestination.Buildernetwork(String network)Sets the value ofNetworkManagementConnectivityTestDestination.getNetwork()NetworkManagementConnectivityTestDestination.Builderport(Number port)Sets the value ofNetworkManagementConnectivityTestDestination.getPort()NetworkManagementConnectivityTestDestination.BuilderprojectId(String projectId)Sets the value ofNetworkManagementConnectivityTestDestination.getProjectId()
-
-
-
Method Detail
-
instance
@Stability(Stable) public NetworkManagementConnectivityTestDestination.Builder instance(String instance)
Sets the value ofNetworkManagementConnectivityTestDestination.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 NetworkManagementConnectivityTestDestination.Builder ipAddress(String ipAddress)
Sets the value ofNetworkManagementConnectivityTestDestination.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 NetworkManagementConnectivityTestDestination.Builder network(String network)
Sets the value ofNetworkManagementConnectivityTestDestination.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
-
port
@Stability(Stable) public NetworkManagementConnectivityTestDestination.Builder port(Number port)
Sets the value ofNetworkManagementConnectivityTestDestination.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 NetworkManagementConnectivityTestDestination.Builder projectId(String projectId)
Sets the value ofNetworkManagementConnectivityTestDestination.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 NetworkManagementConnectivityTestDestination build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetworkManagementConnectivityTestDestination>- Returns:
- a new instance of
NetworkManagementConnectivityTestDestination - Throws:
NullPointerException- if any required attribute was not provided
-
-