Class NetworkConnectivityRegionalEndpoint.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.network_connectivity_regional_endpoint.NetworkConnectivityRegionalEndpoint.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkConnectivityRegionalEndpoint>
- Enclosing class:
- NetworkConnectivityRegionalEndpoint
@Stability(Stable) public static final class NetworkConnectivityRegionalEndpoint.Builder extends Object implements software.amazon.jsii.Builder<NetworkConnectivityRegionalEndpoint>
A fluent builder forNetworkConnectivityRegionalEndpoint.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkConnectivityRegionalEndpoint.BuilderaccessType(String accessType)The access type of this regional endpoint.NetworkConnectivityRegionalEndpoint.Builderaddress(String address)The IP Address of the Regional Endpoint.NetworkConnectivityRegionalEndpointbuild()NetworkConnectivityRegionalEndpoint.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)NetworkConnectivityRegionalEndpoint.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)NetworkConnectivityRegionalEndpoint.Buildercount(com.hashicorp.cdktf.TerraformCount count)NetworkConnectivityRegionalEndpoint.Buildercount(Number count)static NetworkConnectivityRegionalEndpoint.Buildercreate(software.constructs.Construct scope, String id)NetworkConnectivityRegionalEndpoint.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)NetworkConnectivityRegionalEndpoint.Builderdescription(String description)A description of this resource.NetworkConnectivityRegionalEndpoint.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)NetworkConnectivityRegionalEndpoint.Builderid(String 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}.NetworkConnectivityRegionalEndpoint.Builderlabels(Map<String,String> labels)User-defined labels.NetworkConnectivityRegionalEndpoint.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)NetworkConnectivityRegionalEndpoint.Builderlocation(String location)The location of the RegionalEndpoint.NetworkConnectivityRegionalEndpoint.Buildername(String name)The name of the RegionalEndpoint.NetworkConnectivityRegionalEndpoint.Buildernetwork(String network)The name of the VPC network for this private regional endpoint.NetworkConnectivityRegionalEndpoint.Builderproject(String 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}.NetworkConnectivityRegionalEndpoint.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)NetworkConnectivityRegionalEndpoint.Builderprovisioners(List<? extends Object> provisioners)NetworkConnectivityRegionalEndpoint.Buildersubnetwork(String subnetwork)The name of the subnetwork from which the IP address will be allocated.NetworkConnectivityRegionalEndpoint.BuildertargetGoogleApi(String targetGoogleApi)The service endpoint this private regional endpoint connects to.NetworkConnectivityRegionalEndpoint.Buildertimeouts(NetworkConnectivityRegionalEndpointTimeouts timeouts)timeouts block.
-
-
-
Method Detail
-
create
@Stability(Stable) public static NetworkConnectivityRegionalEndpoint.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- The scope in which to define this construct. This parameter is required.id- The scoped construct ID. This parameter is required.- Returns:
- a new instance of
NetworkConnectivityRegionalEndpoint.Builder.
-
connection
@Stability(Experimental) public NetworkConnectivityRegionalEndpoint.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public NetworkConnectivityRegionalEndpoint.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public NetworkConnectivityRegionalEndpoint.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public NetworkConnectivityRegionalEndpoint.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public NetworkConnectivityRegionalEndpoint.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public NetworkConnectivityRegionalEndpoint.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public NetworkConnectivityRegionalEndpoint.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public NetworkConnectivityRegionalEndpoint.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public NetworkConnectivityRegionalEndpoint.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
accessType
@Stability(Stable) public NetworkConnectivityRegionalEndpoint.Builder accessType(String accessType)
The access type of this regional endpoint.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}
- Parameters:
accessType- The access type of this regional endpoint. This parameter is required.- Returns:
this
-
location
@Stability(Stable) public NetworkConnectivityRegionalEndpoint.Builder location(String location)
The location of the RegionalEndpoint.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_regional_endpoint#location NetworkConnectivityRegionalEndpoint#location}
- Parameters:
location- The location of the RegionalEndpoint. This parameter is required.- Returns:
this
-
name
@Stability(Stable) public NetworkConnectivityRegionalEndpoint.Builder name(String name)
The name of the RegionalEndpoint.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_regional_endpoint#name NetworkConnectivityRegionalEndpoint#name}
- Parameters:
name- The name of the RegionalEndpoint. This parameter is required.- Returns:
this
-
targetGoogleApi
@Stability(Stable) public NetworkConnectivityRegionalEndpoint.Builder targetGoogleApi(String 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".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}
- 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.- Returns:
this
-
address
@Stability(Stable) public NetworkConnectivityRegionalEndpoint.Builder address(String 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}
- Parameters:
address- The IP Address of the Regional Endpoint. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public NetworkConnectivityRegionalEndpoint.Builder description(String 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}
- Parameters:
description- A description of this resource. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public NetworkConnectivityRegionalEndpoint.Builder id(String 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.
- 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}. This parameter is required.- Returns:
this
-
labels
@Stability(Stable) public NetworkConnectivityRegionalEndpoint.Builder labels(Map<String,String> 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}
- Parameters:
labels- User-defined labels. This parameter is required.- Returns:
this
-
network
@Stability(Stable) public NetworkConnectivityRegionalEndpoint.Builder network(String 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}
- Parameters:
network- The name of the VPC network for this private regional endpoint. Format: 'projects/{project}/global/networks/{network}'. This parameter is required.- Returns:
this
-
project
@Stability(Stable) public NetworkConnectivityRegionalEndpoint.Builder project(String 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}.- 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}. This parameter is required.- Returns:
this
-
subnetwork
@Stability(Stable) public NetworkConnectivityRegionalEndpoint.Builder subnetwork(String 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}
- Parameters:
subnetwork- The name of the subnetwork from which the IP address will be allocated. Format: 'projects/{project}/regions/{region}/subnetworks/{subnetwork}'. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public NetworkConnectivityRegionalEndpoint.Builder timeouts(NetworkConnectivityRegionalEndpointTimeouts 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}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public NetworkConnectivityRegionalEndpoint build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetworkConnectivityRegionalEndpoint>- Returns:
- a newly built instance of
NetworkConnectivityRegionalEndpoint.
-
-