Class ComputeTargetPoolConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        @Stability(Stable)
        public ComputeTargetPoolConfig.Builder name​(String name)
        Parameters:
        name - A unique name for the resource, required by GCE. Changing this forces a new resource to be created. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#name ComputeTargetPool#name}
        Returns:
        this
      • backupPool

        @Stability(Stable)
        public ComputeTargetPoolConfig.Builder backupPool​(String backupPool)
        Parameters:
        backupPool - URL to the backup target pool. Must also set failover_ratio. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#backup_pool ComputeTargetPool#backup_pool}
        Returns:
        this
      • description

        @Stability(Stable)
        public ComputeTargetPoolConfig.Builder description​(String description)
        Parameters:
        description - Textual description field. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#description ComputeTargetPool#description}
        Returns:
        this
      • failoverRatio

        @Stability(Stable)
        public ComputeTargetPoolConfig.Builder failoverRatio​(Number failoverRatio)
        Parameters:
        failoverRatio - Ratio (0 to 1) of failed nodes before using the backup pool (which must also be set). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#failover_ratio ComputeTargetPool#failover_ratio}
        Returns:
        this
      • healthChecks

        @Stability(Stable)
        public ComputeTargetPoolConfig.Builder healthChecks​(List<String> healthChecks)
        Parameters:
        healthChecks - List of zero or one health check name or self_link. Only legacy google_compute_http_health_check is supported. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#health_checks ComputeTargetPool#health_checks}
        Returns:
        this
      • id

        @Stability(Stable)
        public ComputeTargetPoolConfig.Builder id​(String id)
        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#id ComputeTargetPool#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
      • instances

        @Stability(Stable)
        public ComputeTargetPoolConfig.Builder instances​(List<String> instances)
        Parameters:
        instances - List of instances in the pool. They can be given as URLs, or in the form of "zone/name". Note that the instances need not exist at the time of target pool creation, so there is no need to use the Terraform interpolators to create a dependency on the instances from the target pool. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#instances ComputeTargetPool#instances}
        Returns:
        this
      • project

        @Stability(Stable)
        public ComputeTargetPoolConfig.Builder project​(String project)
        Parameters:
        project - The ID of the project in which the resource belongs. If it is not provided, the provider project is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#project ComputeTargetPool#project}
        Returns:
        this
      • region

        @Stability(Stable)
        public ComputeTargetPoolConfig.Builder region​(String region)
        Parameters:
        region - Where the target pool resides. Defaults to project region. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#region ComputeTargetPool#region}
        Returns:
        this
      • sessionAffinity

        @Stability(Stable)
        public ComputeTargetPoolConfig.Builder sessionAffinity​(String sessionAffinity)
        Parameters:
        sessionAffinity - How to distribute load. Options are "NONE" (no affinity). "CLIENT_IP" (hash of the source/dest addresses / ports), and "CLIENT_IP_PROTO" also includes the protocol (default "NONE"). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#session_affinity ComputeTargetPool#session_affinity}
        Returns:
        this
      • connection

        @Stability(Experimental)
        public ComputeTargetPoolConfig.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public ComputeTargetPoolConfig.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public ComputeTargetPoolConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public ComputeTargetPoolConfig.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public ComputeTargetPoolConfig.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Sets the value of TerraformMetaArguments.getDependsOn()
        Parameters:
        dependsOn - the value to be set.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public ComputeTargetPoolConfig.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Sets the value of TerraformMetaArguments.getForEach()
        Parameters:
        forEach - the value to be set.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public ComputeTargetPoolConfig.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Sets the value of TerraformMetaArguments.getLifecycle()
        Parameters:
        lifecycle - the value to be set.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public ComputeTargetPoolConfig.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Sets the value of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public ComputeTargetPoolConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this