Class ComputeNetworkEndpointGroup.Builder

    • Method Detail

      • 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​(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
      • 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