Class NetworkManagementConnectivityTestConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.network_management_connectivity_test.NetworkManagementConnectivityTestConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkManagementConnectivityTestConfig>
- Enclosing interface:
- NetworkManagementConnectivityTestConfig
@Stability(Stable) public static final class NetworkManagementConnectivityTestConfig.Builder extends Object implements software.amazon.jsii.Builder<NetworkManagementConnectivityTestConfig>
A builder forNetworkManagementConnectivityTestConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
destination
@Stability(Stable) public NetworkManagementConnectivityTestConfig.Builder destination(NetworkManagementConnectivityTestDestination destination)
Sets the value ofNetworkManagementConnectivityTestConfig.getDestination()- Parameters:
destination- destination block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_management_connectivity_test#destination NetworkManagementConnectivityTest#destination}- Returns:
this
-
name
@Stability(Stable) public NetworkManagementConnectivityTestConfig.Builder name(String name)
Sets the value ofNetworkManagementConnectivityTestConfig.getName()- Parameters:
name- Unique name for the connectivity test. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_management_connectivity_test#name NetworkManagementConnectivityTest#name}- Returns:
this
-
source
@Stability(Stable) public NetworkManagementConnectivityTestConfig.Builder source(NetworkManagementConnectivityTestSource source)
Sets the value ofNetworkManagementConnectivityTestConfig.getSource()- Parameters:
source- source block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_management_connectivity_test#source NetworkManagementConnectivityTest#source}- Returns:
this
-
description
@Stability(Stable) public NetworkManagementConnectivityTestConfig.Builder description(String description)
Sets the value ofNetworkManagementConnectivityTestConfig.getDescription()- Parameters:
description- The user-supplied description of the Connectivity Test. Maximum of 512 characters. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_management_connectivity_test#description NetworkManagementConnectivityTest#description}- Returns:
this
-
id
@Stability(Stable) public NetworkManagementConnectivityTestConfig.Builder id(String id)
Sets the value ofNetworkManagementConnectivityTestConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_management_connectivity_test#id NetworkManagementConnectivityTest#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
-
labels
@Stability(Stable) public NetworkManagementConnectivityTestConfig.Builder labels(Map<String,String> labels)
Sets the value ofNetworkManagementConnectivityTestConfig.getLabels()- Parameters:
labels- Resource labels to represent user-provided metadata. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_management_connectivity_test#labels NetworkManagementConnectivityTest#labels}- Returns:
this
-
project
@Stability(Stable) public NetworkManagementConnectivityTestConfig.Builder project(String project)
Sets the value ofNetworkManagementConnectivityTestConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_management_connectivity_test#project NetworkManagementConnectivityTest#project}.- Returns:
this
-
protocol
@Stability(Stable) public NetworkManagementConnectivityTestConfig.Builder protocol(String protocol)
Sets the value ofNetworkManagementConnectivityTestConfig.getProtocol()- Parameters:
protocol- IP Protocol of the test. When not provided, "TCP" is assumed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_management_connectivity_test#protocol NetworkManagementConnectivityTest#protocol}- Returns:
this
-
relatedProjects
@Stability(Stable) public NetworkManagementConnectivityTestConfig.Builder relatedProjects(List<String> relatedProjects)
Sets the value ofNetworkManagementConnectivityTestConfig.getRelatedProjects()- Parameters:
relatedProjects- Other projects that may be relevant for reachability analysis. This is applicable to scenarios where a test can cross project boundaries. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_management_connectivity_test#related_projects NetworkManagementConnectivityTest#related_projects}- Returns:
this
-
timeouts
@Stability(Stable) public NetworkManagementConnectivityTestConfig.Builder timeouts(NetworkManagementConnectivityTestTimeouts timeouts)
Sets the value ofNetworkManagementConnectivityTestConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_management_connectivity_test#timeouts NetworkManagementConnectivityTest#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public NetworkManagementConnectivityTestConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public NetworkManagementConnectivityTestConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public NetworkManagementConnectivityTestConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public NetworkManagementConnectivityTestConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public NetworkManagementConnectivityTestConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public NetworkManagementConnectivityTestConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public NetworkManagementConnectivityTestConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public NetworkManagementConnectivityTestConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public NetworkManagementConnectivityTestConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public NetworkManagementConnectivityTestConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetworkManagementConnectivityTestConfig>- Returns:
- a new instance of
NetworkManagementConnectivityTestConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-