Class CloudbuildWorkerPoolWorkerConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudbuild_worker_pool.CloudbuildWorkerPoolWorkerConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudbuildWorkerPoolWorkerConfig>
- Enclosing interface:
- CloudbuildWorkerPoolWorkerConfig
@Stability(Stable) public static final class CloudbuildWorkerPoolWorkerConfig.Builder extends Object implements software.amazon.jsii.Builder<CloudbuildWorkerPoolWorkerConfig>
A builder forCloudbuildWorkerPoolWorkerConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudbuildWorkerPoolWorkerConfigbuild()Builds the configured instance.CloudbuildWorkerPoolWorkerConfig.BuilderdiskSizeGb(Number diskSizeGb)Sets the value ofCloudbuildWorkerPoolWorkerConfig.getDiskSizeGb()CloudbuildWorkerPoolWorkerConfig.BuildermachineType(String machineType)Sets the value ofCloudbuildWorkerPoolWorkerConfig.getMachineType()CloudbuildWorkerPoolWorkerConfig.BuildernoExternalIp(com.hashicorp.cdktf.IResolvable noExternalIp)Sets the value ofCloudbuildWorkerPoolWorkerConfig.getNoExternalIp()CloudbuildWorkerPoolWorkerConfig.BuildernoExternalIp(Boolean noExternalIp)Sets the value ofCloudbuildWorkerPoolWorkerConfig.getNoExternalIp()
-
-
-
Method Detail
-
diskSizeGb
@Stability(Stable) public CloudbuildWorkerPoolWorkerConfig.Builder diskSizeGb(Number diskSizeGb)
Sets the value ofCloudbuildWorkerPoolWorkerConfig.getDiskSizeGb()- 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)
Sets the value ofCloudbuildWorkerPoolWorkerConfig.getMachineType()- Parameters:
machineType- Machine type of a worker, such asn1-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)
Sets the value ofCloudbuildWorkerPoolWorkerConfig.getNoExternalIp()- 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)
Sets the value ofCloudbuildWorkerPoolWorkerConfig.getNoExternalIp()- 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
-
build
@Stability(Stable) public CloudbuildWorkerPoolWorkerConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudbuildWorkerPoolWorkerConfig>- Returns:
- a new instance of
CloudbuildWorkerPoolWorkerConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-