Class NetworkConnectivityRegionalEndpointConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.network_connectivity_regional_endpoint.NetworkConnectivityRegionalEndpointConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkConnectivityRegionalEndpointConfig>
- Enclosing interface:
- NetworkConnectivityRegionalEndpointConfig
@Stability(Stable) public static final class NetworkConnectivityRegionalEndpointConfig.Builder extends Object implements software.amazon.jsii.Builder<NetworkConnectivityRegionalEndpointConfig>
A builder forNetworkConnectivityRegionalEndpointConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
accessType
@Stability(Stable) public NetworkConnectivityRegionalEndpointConfig.Builder accessType(String accessType)
Sets the value ofNetworkConnectivityRegionalEndpointConfig.getAccessType()- Parameters:
accessType- The access type of this regional endpoint. This parameter is required. This field is reflected in the PSC Forwarding Rule configuration to enable global access. Possible values: ["GLOBAL", "REGIONAL"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_regional_endpoint#access_type NetworkConnectivityRegionalEndpoint#access_type}- Returns:
this
-
location
@Stability(Stable) public NetworkConnectivityRegionalEndpointConfig.Builder location(String location)
Sets the value ofNetworkConnectivityRegionalEndpointConfig.getLocation()- Parameters:
location- The location of the RegionalEndpoint. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_regional_endpoint#location NetworkConnectivityRegionalEndpoint#location}- Returns:
this
-
name
@Stability(Stable) public NetworkConnectivityRegionalEndpointConfig.Builder name(String name)
Sets the value ofNetworkConnectivityRegionalEndpointConfig.getName()- Parameters:
name- The name of the RegionalEndpoint. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_regional_endpoint#name NetworkConnectivityRegionalEndpoint#name}- Returns:
this
-
targetGoogleApi
@Stability(Stable) public NetworkConnectivityRegionalEndpointConfig.Builder targetGoogleApi(String targetGoogleApi)
Sets the value ofNetworkConnectivityRegionalEndpointConfig.getTargetGoogleApi()- Parameters:
targetGoogleApi- The service endpoint this private regional endpoint connects to. Format: '{apiname}.{region}.p.rep.googleapis.com' Example: "cloudkms.us-central1.p.rep.googleapis.com". This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_regional_endpoint#target_google_api NetworkConnectivityRegionalEndpoint#target_google_api}- Returns:
this
-
address
@Stability(Stable) public NetworkConnectivityRegionalEndpointConfig.Builder address(String address)
Sets the value ofNetworkConnectivityRegionalEndpointConfig.getAddress()- Parameters:
address- The IP Address of the Regional Endpoint. When no address is provided, an IP from the subnetwork is allocated. Use one of the following formats: * IPv4 address as in '10.0.0.1' * Address resource URI as in 'projects/{project}/regions/{region}/addresses/{address_name}' ~> **Note:** This field accepts both a reference to a Compute Address resource, which is the resource name of which format is given in the description, and IP literal value. If the user chooses to input a reserved address value; they need to make sure that the reserved address is in IPv4 version, its purpose is GCE_ENDPOINT, its type is INTERNAL and its status is RESERVED. If the user chooses to input an IP literal, they need to make sure that it's a valid IPv4 address (x.x.x.x) within the subnetwork. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_regional_endpoint#address NetworkConnectivityRegionalEndpoint#address}- Returns:
this
-
description
@Stability(Stable) public NetworkConnectivityRegionalEndpointConfig.Builder description(String description)
Sets the value ofNetworkConnectivityRegionalEndpointConfig.getDescription()- Parameters:
description- A description of this resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_regional_endpoint#description NetworkConnectivityRegionalEndpoint#description}- Returns:
this
-
id
@Stability(Stable) public NetworkConnectivityRegionalEndpointConfig.Builder id(String id)
Sets the value ofNetworkConnectivityRegionalEndpointConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_regional_endpoint#id NetworkConnectivityRegionalEndpoint#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 NetworkConnectivityRegionalEndpointConfig.Builder labels(Map<String,String> labels)
Sets the value ofNetworkConnectivityRegionalEndpointConfig.getLabels()- Parameters:
labels- User-defined labels. **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_connectivity_regional_endpoint#labels NetworkConnectivityRegionalEndpoint#labels}- Returns:
this
-
network
@Stability(Stable) public NetworkConnectivityRegionalEndpointConfig.Builder network(String network)
Sets the value ofNetworkConnectivityRegionalEndpointConfig.getNetwork()- Parameters:
network- The name of the VPC network for this private regional endpoint. Format: 'projects/{project}/global/networks/{network}'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_regional_endpoint#network NetworkConnectivityRegionalEndpoint#network}- Returns:
this
-
project
@Stability(Stable) public NetworkConnectivityRegionalEndpointConfig.Builder project(String project)
Sets the value ofNetworkConnectivityRegionalEndpointConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_regional_endpoint#project NetworkConnectivityRegionalEndpoint#project}.- Returns:
this
-
subnetwork
@Stability(Stable) public NetworkConnectivityRegionalEndpointConfig.Builder subnetwork(String subnetwork)
Sets the value ofNetworkConnectivityRegionalEndpointConfig.getSubnetwork()- Parameters:
subnetwork- The name of the subnetwork from which the IP address will be allocated. Format: 'projects/{project}/regions/{region}/subnetworks/{subnetwork}'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_regional_endpoint#subnetwork NetworkConnectivityRegionalEndpoint#subnetwork}- Returns:
this
-
timeouts
@Stability(Stable) public NetworkConnectivityRegionalEndpointConfig.Builder timeouts(NetworkConnectivityRegionalEndpointTimeouts timeouts)
Sets the value ofNetworkConnectivityRegionalEndpointConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_regional_endpoint#timeouts NetworkConnectivityRegionalEndpoint#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public NetworkConnectivityRegionalEndpointConfig.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 NetworkConnectivityRegionalEndpointConfig.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 NetworkConnectivityRegionalEndpointConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public NetworkConnectivityRegionalEndpointConfig.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 NetworkConnectivityRegionalEndpointConfig.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 NetworkConnectivityRegionalEndpointConfig.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 NetworkConnectivityRegionalEndpointConfig.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 NetworkConnectivityRegionalEndpointConfig.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 NetworkConnectivityRegionalEndpointConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public NetworkConnectivityRegionalEndpointConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetworkConnectivityRegionalEndpointConfig>- Returns:
- a new instance of
NetworkConnectivityRegionalEndpointConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-