Class CloudbuildWorkerPoolWorkerConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • diskSizeGb

        @Stability(Stable)
        public CloudbuildWorkerPoolWorkerConfig.Builder diskSizeGb​(Number diskSizeGb)
        Parameters:
        diskSizeGb - Size of the disk attached to the worker, in GB. See [Worker pool config file](https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-file). Specify a value of up to 1000. If `0` is specified, Cloud Build will use a standard disk size. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_worker_pool#disk_size_gb CloudbuildWorkerPool#disk_size_gb}
        Returns:
        this
      • machineType

        @Stability(Stable)
        public CloudbuildWorkerPoolWorkerConfig.Builder machineType​(String machineType)
        Parameters:
        machineType - Machine type of a worker, such as n1-standard-1. See [Worker pool config file](https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-file). If left blank, Cloud Build will use `n1-standard-1`. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_worker_pool#machine_type CloudbuildWorkerPool#machine_type}
        Returns:
        this
      • noExternalIp

        @Stability(Stable)
        public CloudbuildWorkerPoolWorkerConfig.Builder noExternalIp​(Boolean noExternalIp)
        Parameters:
        noExternalIp - If true, workers are created without any public address, which prevents network egress to public IPs. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_worker_pool#no_external_ip CloudbuildWorkerPool#no_external_ip}
        Returns:
        this
      • noExternalIp

        @Stability(Stable)
        public CloudbuildWorkerPoolWorkerConfig.Builder noExternalIp​(com.hashicorp.cdktf.IResolvable noExternalIp)
        Parameters:
        noExternalIp - If true, workers are created without any public address, which prevents network egress to public IPs. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_worker_pool#no_external_ip CloudbuildWorkerPool#no_external_ip}
        Returns:
        this