Class ComputeRegionNetworkEndpointConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_network_endpoint.ComputeRegionNetworkEndpointConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionNetworkEndpointConfig>
- Enclosing interface:
- ComputeRegionNetworkEndpointConfig
@Stability(Stable) public static final class ComputeRegionNetworkEndpointConfig.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionNetworkEndpointConfig>
A builder forComputeRegionNetworkEndpointConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
port
@Stability(Stable) public ComputeRegionNetworkEndpointConfig.Builder port(Number port)
Sets the value ofComputeRegionNetworkEndpointConfig.getPort()- Parameters:
port- Port number of network endpoint. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_network_endpoint#port ComputeRegionNetworkEndpoint#port}- Returns:
this
-
regionNetworkEndpointGroup
@Stability(Stable) public ComputeRegionNetworkEndpointConfig.Builder regionNetworkEndpointGroup(String regionNetworkEndpointGroup)
Sets the value ofComputeRegionNetworkEndpointConfig.getRegionNetworkEndpointGroup()- Parameters:
regionNetworkEndpointGroup- The network endpoint group this endpoint is part of. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_network_endpoint#region_network_endpoint_group ComputeRegionNetworkEndpoint#region_network_endpoint_group}- Returns:
this
-
fqdn
@Stability(Stable) public ComputeRegionNetworkEndpointConfig.Builder fqdn(String fqdn)
Sets the value ofComputeRegionNetworkEndpointConfig.getFqdn()- Parameters:
fqdn- Fully qualified domain name of network endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_FQDN_PORT. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_network_endpoint#fqdn ComputeRegionNetworkEndpoint#fqdn}- Returns:
this
-
id
@Stability(Stable) public ComputeRegionNetworkEndpointConfig.Builder id(String id)
Sets the value ofComputeRegionNetworkEndpointConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_network_endpoint#id ComputeRegionNetworkEndpoint#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
-
ipAddress
@Stability(Stable) public ComputeRegionNetworkEndpointConfig.Builder ipAddress(String ipAddress)
Sets the value ofComputeRegionNetworkEndpointConfig.getIpAddress()- Parameters:
ipAddress- IPv4 address external endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_IP_PORT. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_network_endpoint#ip_address ComputeRegionNetworkEndpoint#ip_address}- Returns:
this
-
project
@Stability(Stable) public ComputeRegionNetworkEndpointConfig.Builder project(String project)
Sets the value ofComputeRegionNetworkEndpointConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_network_endpoint#project ComputeRegionNetworkEndpoint#project}.- Returns:
this
-
region
@Stability(Stable) public ComputeRegionNetworkEndpointConfig.Builder region(String region)
Sets the value ofComputeRegionNetworkEndpointConfig.getRegion()- Parameters:
region- Region where the containing network endpoint group is located. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_network_endpoint#region ComputeRegionNetworkEndpoint#region}- Returns:
this
-
timeouts
@Stability(Stable) public ComputeRegionNetworkEndpointConfig.Builder timeouts(ComputeRegionNetworkEndpointTimeouts timeouts)
Sets the value ofComputeRegionNetworkEndpointConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_network_endpoint#timeouts ComputeRegionNetworkEndpoint#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public ComputeRegionNetworkEndpointConfig.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 ComputeRegionNetworkEndpointConfig.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 ComputeRegionNetworkEndpointConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComputeRegionNetworkEndpointConfig.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 ComputeRegionNetworkEndpointConfig.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 ComputeRegionNetworkEndpointConfig.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 ComputeRegionNetworkEndpointConfig.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 ComputeRegionNetworkEndpointConfig.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 ComputeRegionNetworkEndpointConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ComputeRegionNetworkEndpointConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionNetworkEndpointConfig>- Returns:
- a new instance of
ComputeRegionNetworkEndpointConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-