Class ComputeNetworkEndpointsNetworkEndpoints.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_network_endpoints.ComputeNetworkEndpointsNetworkEndpoints.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeNetworkEndpointsNetworkEndpoints>
- Enclosing interface:
- ComputeNetworkEndpointsNetworkEndpoints
@Stability(Stable) public static final class ComputeNetworkEndpointsNetworkEndpoints.Builder extends Object implements software.amazon.jsii.Builder<ComputeNetworkEndpointsNetworkEndpoints>
A builder forComputeNetworkEndpointsNetworkEndpoints
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeNetworkEndpointsNetworkEndpointsbuild()Builds the configured instance.ComputeNetworkEndpointsNetworkEndpoints.Builderinstance(String instance)Sets the value ofComputeNetworkEndpointsNetworkEndpoints.getInstance()ComputeNetworkEndpointsNetworkEndpoints.BuilderipAddress(String ipAddress)Sets the value ofComputeNetworkEndpointsNetworkEndpoints.getIpAddress()ComputeNetworkEndpointsNetworkEndpoints.Builderport(Number port)Sets the value ofComputeNetworkEndpointsNetworkEndpoints.getPort()
-
-
-
Method Detail
-
ipAddress
@Stability(Stable) public ComputeNetworkEndpointsNetworkEndpoints.Builder ipAddress(String ipAddress)
Sets the value ofComputeNetworkEndpointsNetworkEndpoints.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_endpoints#ip_address ComputeNetworkEndpoints#ip_address}- Returns:
this
-
instance
@Stability(Stable) public ComputeNetworkEndpointsNetworkEndpoints.Builder instance(String instance)
Sets the value ofComputeNetworkEndpointsNetworkEndpoints.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 as the network endpoint group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_endpoints#instance ComputeNetworkEndpoints#instance}- Returns:
this
-
port
@Stability(Stable) public ComputeNetworkEndpointsNetworkEndpoints.Builder port(Number port)
Sets the value ofComputeNetworkEndpointsNetworkEndpoints.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_endpoints#port ComputeNetworkEndpoints#port}- Returns:
this
-
build
@Stability(Stable) public ComputeNetworkEndpointsNetworkEndpoints build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeNetworkEndpointsNetworkEndpoints>- Returns:
- a new instance of
ComputeNetworkEndpointsNetworkEndpoints - Throws:
NullPointerException- if any required attribute was not provided
-
-