Class ComputeNetworkEndpointConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_network_endpoint.ComputeNetworkEndpointConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeNetworkEndpointConfig>
- Enclosing interface:
- ComputeNetworkEndpointConfig
@Stability(Stable) public static final class ComputeNetworkEndpointConfig.Builder extends Object implements software.amazon.jsii.Builder<ComputeNetworkEndpointConfig>
A builder forComputeNetworkEndpointConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeNetworkEndpointConfigbuild()Builds the configured instance.ComputeNetworkEndpointConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()ComputeNetworkEndpointConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()ComputeNetworkEndpointConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()ComputeNetworkEndpointConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()ComputeNetworkEndpointConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()ComputeNetworkEndpointConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()ComputeNetworkEndpointConfig.Builderid(String id)Sets the value ofComputeNetworkEndpointConfig.getId()ComputeNetworkEndpointConfig.Builderinstance(String instance)Sets the value ofComputeNetworkEndpointConfig.getInstance()ComputeNetworkEndpointConfig.BuilderipAddress(String ipAddress)Sets the value ofComputeNetworkEndpointConfig.getIpAddress()ComputeNetworkEndpointConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()ComputeNetworkEndpointConfig.BuildernetworkEndpointGroup(String networkEndpointGroup)Sets the value ofComputeNetworkEndpointConfig.getNetworkEndpointGroup()ComputeNetworkEndpointConfig.Builderport(Number port)Sets the value ofComputeNetworkEndpointConfig.getPort()ComputeNetworkEndpointConfig.Builderproject(String project)Sets the value ofComputeNetworkEndpointConfig.getProject()ComputeNetworkEndpointConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()ComputeNetworkEndpointConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()ComputeNetworkEndpointConfig.Buildertimeouts(ComputeNetworkEndpointTimeouts timeouts)Sets the value ofComputeNetworkEndpointConfig.getTimeouts()ComputeNetworkEndpointConfig.Builderzone(String zone)Sets the value ofComputeNetworkEndpointConfig.getZone()
-
-
-
Method Detail
-
ipAddress
@Stability(Stable) public ComputeNetworkEndpointConfig.Builder ipAddress(String ipAddress)
Sets the value ofComputeNetworkEndpointConfig.getIpAddress()- Parameters:
ipAddress- IPv4 address of network endpoint. This parameter is required. The IP address must belong to a VM in GCE (either the primary IP or as part of an aliased IP range). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_endpoint#ip_address ComputeNetworkEndpoint#ip_address}- Returns:
this
-
networkEndpointGroup
@Stability(Stable) public ComputeNetworkEndpointConfig.Builder networkEndpointGroup(String networkEndpointGroup)
Sets the value ofComputeNetworkEndpointConfig.getNetworkEndpointGroup()- Parameters:
networkEndpointGroup- 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_network_endpoint#network_endpoint_group ComputeNetworkEndpoint#network_endpoint_group}- Returns:
this
-
id
@Stability(Stable) public ComputeNetworkEndpointConfig.Builder id(String id)
Sets the value ofComputeNetworkEndpointConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_endpoint#id ComputeNetworkEndpoint#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
-
instance
@Stability(Stable) public ComputeNetworkEndpointConfig.Builder instance(String instance)
Sets the value ofComputeNetworkEndpointConfig.getInstance()- Parameters:
instance- The name for a specific VM instance that the IP address belongs to. This is required for network endpoints of type GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_endpoint#instance ComputeNetworkEndpoint#instance}- Returns:
this
-
port
@Stability(Stable) public ComputeNetworkEndpointConfig.Builder port(Number port)
Sets the value ofComputeNetworkEndpointConfig.getPort()- Parameters:
port- Port number of network endpoint. Note 'port' is required unless the Network Endpoint Group is created with the type of 'GCE_VM_IP'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_endpoint#port ComputeNetworkEndpoint#port}- Returns:
this
-
project
@Stability(Stable) public ComputeNetworkEndpointConfig.Builder project(String project)
Sets the value ofComputeNetworkEndpointConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_endpoint#project ComputeNetworkEndpoint#project}.- Returns:
this
-
timeouts
@Stability(Stable) public ComputeNetworkEndpointConfig.Builder timeouts(ComputeNetworkEndpointTimeouts timeouts)
Sets the value ofComputeNetworkEndpointConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_endpoint#timeouts ComputeNetworkEndpoint#timeouts}- Returns:
this
-
zone
@Stability(Stable) public ComputeNetworkEndpointConfig.Builder zone(String zone)
Sets the value ofComputeNetworkEndpointConfig.getZone()- Parameters:
zone- Zone 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_network_endpoint#zone ComputeNetworkEndpoint#zone}- Returns:
this
-
connection
@Stability(Experimental) public ComputeNetworkEndpointConfig.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 ComputeNetworkEndpointConfig.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 ComputeNetworkEndpointConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComputeNetworkEndpointConfig.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 ComputeNetworkEndpointConfig.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 ComputeNetworkEndpointConfig.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 ComputeNetworkEndpointConfig.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 ComputeNetworkEndpointConfig.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 ComputeNetworkEndpointConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ComputeNetworkEndpointConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeNetworkEndpointConfig>- Returns:
- a new instance of
ComputeNetworkEndpointConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-