Class ComputeNetworkEndpointGroup.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_network_endpoint_group.ComputeNetworkEndpointGroup.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeNetworkEndpointGroup>
- Enclosing class:
- ComputeNetworkEndpointGroup
@Stability(Stable) public static final class ComputeNetworkEndpointGroup.Builder extends Object implements software.amazon.jsii.Builder<ComputeNetworkEndpointGroup>
A fluent builder forComputeNetworkEndpointGroup.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeNetworkEndpointGroupbuild()ComputeNetworkEndpointGroup.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)ComputeNetworkEndpointGroup.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)ComputeNetworkEndpointGroup.Buildercount(com.hashicorp.cdktf.TerraformCount count)ComputeNetworkEndpointGroup.Buildercount(Number count)static ComputeNetworkEndpointGroup.Buildercreate(software.constructs.Construct scope, String id)ComputeNetworkEndpointGroup.BuilderdefaultPort(Number defaultPort)The default port used if the port number is not specified in the network endpoint.ComputeNetworkEndpointGroup.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)ComputeNetworkEndpointGroup.Builderdescription(String description)An optional description of this resource.ComputeNetworkEndpointGroup.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)ComputeNetworkEndpointGroup.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_endpoint_group#id ComputeNetworkEndpointGroup#id}.ComputeNetworkEndpointGroup.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)ComputeNetworkEndpointGroup.Buildername(String name)Name of the resource;ComputeNetworkEndpointGroup.Buildernetwork(String network)The network to which all network endpoints in the NEG belong.ComputeNetworkEndpointGroup.BuildernetworkEndpointType(String networkEndpointType)Type of network endpoints in this network endpoint group.ComputeNetworkEndpointGroup.Builderproject(String project)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_endpoint_group#project ComputeNetworkEndpointGroup#project}.ComputeNetworkEndpointGroup.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)ComputeNetworkEndpointGroup.Builderprovisioners(List<? extends Object> provisioners)ComputeNetworkEndpointGroup.Buildersubnetwork(String subnetwork)Optional subnetwork to which all network endpoints in the NEG belong.ComputeNetworkEndpointGroup.Buildertimeouts(ComputeNetworkEndpointGroupTimeouts timeouts)timeouts block.ComputeNetworkEndpointGroup.Builderzone(String zone)Zone where the network endpoint group is located.
-
-
-
Method Detail
-
create
@Stability(Stable) public static ComputeNetworkEndpointGroup.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
ComputeNetworkEndpointGroup.Builder.
-
connection
@Stability(Experimental) public ComputeNetworkEndpointGroup.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public ComputeNetworkEndpointGroup.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public ComputeNetworkEndpointGroup.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public ComputeNetworkEndpointGroup.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public ComputeNetworkEndpointGroup.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public ComputeNetworkEndpointGroup.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public ComputeNetworkEndpointGroup.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public ComputeNetworkEndpointGroup.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public ComputeNetworkEndpointGroup.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
name
@Stability(Stable) public ComputeNetworkEndpointGroup.Builder name(String name)
Name of the resource;provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression '[a-z](%5B-a-z0-9%5D*%5Ba-z0-9%5D)?' which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_endpoint_group#name ComputeNetworkEndpointGroup#name}
- Parameters:
name- Name of the resource;. This parameter is required.- Returns:
this
-
network
@Stability(Stable) public ComputeNetworkEndpointGroup.Builder network(String network)
The network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_endpoint_group#network ComputeNetworkEndpointGroup#network}
- Parameters:
network- The network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified. This parameter is required.- Returns:
this
-
defaultPort
@Stability(Stable) public ComputeNetworkEndpointGroup.Builder defaultPort(Number defaultPort)
The default port used if the port number is not specified in the network endpoint.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_endpoint_group#default_port ComputeNetworkEndpointGroup#default_port}
- Parameters:
defaultPort- The default port used if the port number is not specified in the network endpoint. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public ComputeNetworkEndpointGroup.Builder description(String description)
An optional description of this resource. Provide this property when you create the resource.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_endpoint_group#description ComputeNetworkEndpointGroup#description}
- Parameters:
description- An optional description of this resource. Provide this property when you create the resource. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public ComputeNetworkEndpointGroup.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_endpoint_group#id ComputeNetworkEndpointGroup#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/compute_network_endpoint_group#id ComputeNetworkEndpointGroup#id}. This parameter is required.- Returns:
this
-
networkEndpointType
@Stability(Stable) public ComputeNetworkEndpointGroup.Builder networkEndpointType(String networkEndpointType)
Type of network endpoints in this network endpoint group.NON_GCP_PRIVATE_IP_PORT is used for hybrid connectivity network endpoint groups (see https://cloud.google.com/load-balancing/docs/hybrid). Note that NON_GCP_PRIVATE_IP_PORT can only be used with Backend Services that 1) have the following load balancing schemes: EXTERNAL, EXTERNAL_MANAGED, INTERNAL_MANAGED, and INTERNAL_SELF_MANAGED and 2) support the RATE or CONNECTION balancing modes. Possible values include: GCE_VM_IP, GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_IP_PORT, INTERNET_FQDN_PORT, SERVERLESS, and PRIVATE_SERVICE_CONNECT. Default value: "GCE_VM_IP_PORT" Possible values: ["GCE_VM_IP", "GCE_VM_IP_PORT", "NON_GCP_PRIVATE_IP_PORT", "INTERNET_IP_PORT", "INTERNET_FQDN_PORT", "SERVERLESS", "PRIVATE_SERVICE_CONNECT"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_endpoint_group#network_endpoint_type ComputeNetworkEndpointGroup#network_endpoint_type}
- Parameters:
networkEndpointType- Type of network endpoints in this network endpoint group. This parameter is required.- Returns:
this
-
project
@Stability(Stable) public ComputeNetworkEndpointGroup.Builder project(String project)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_endpoint_group#project ComputeNetworkEndpointGroup#project}.- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_endpoint_group#project ComputeNetworkEndpointGroup#project}. This parameter is required.- Returns:
this
-
subnetwork
@Stability(Stable) public ComputeNetworkEndpointGroup.Builder subnetwork(String subnetwork)
Optional subnetwork to which all network endpoints in the NEG belong.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_endpoint_group#subnetwork ComputeNetworkEndpointGroup#subnetwork}
- Parameters:
subnetwork- Optional subnetwork to which all network endpoints in the NEG belong. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public ComputeNetworkEndpointGroup.Builder timeouts(ComputeNetworkEndpointGroupTimeouts timeouts)
timeouts block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_endpoint_group#timeouts ComputeNetworkEndpointGroup#timeouts}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
zone
@Stability(Stable) public ComputeNetworkEndpointGroup.Builder zone(String zone)
Zone where the network endpoint group is located.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_endpoint_group#zone ComputeNetworkEndpointGroup#zone}
- Parameters:
zone- Zone where the network endpoint group is located. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public ComputeNetworkEndpointGroup build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeNetworkEndpointGroup>- Returns:
- a newly built instance of
ComputeNetworkEndpointGroup.
-
-