Class WorkbenchInstanceGceSetupBootDisk.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.workbench_instance.WorkbenchInstanceGceSetupBootDisk.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<WorkbenchInstanceGceSetupBootDisk>
- Enclosing interface:
- WorkbenchInstanceGceSetupBootDisk
@Stability(Stable) public static final class WorkbenchInstanceGceSetupBootDisk.Builder extends Object implements software.amazon.jsii.Builder<WorkbenchInstanceGceSetupBootDisk>
A builder forWorkbenchInstanceGceSetupBootDisk
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkbenchInstanceGceSetupBootDiskbuild()Builds the configured instance.WorkbenchInstanceGceSetupBootDisk.BuilderdiskEncryption(String diskEncryption)Sets the value ofWorkbenchInstanceGceSetupBootDisk.getDiskEncryption()WorkbenchInstanceGceSetupBootDisk.BuilderdiskSizeGb(String diskSizeGb)Sets the value ofWorkbenchInstanceGceSetupBootDisk.getDiskSizeGb()WorkbenchInstanceGceSetupBootDisk.BuilderdiskType(String diskType)Sets the value ofWorkbenchInstanceGceSetupBootDisk.getDiskType()WorkbenchInstanceGceSetupBootDisk.BuilderkmsKey(String kmsKey)Sets the value ofWorkbenchInstanceGceSetupBootDisk.getKmsKey()
-
-
-
Method Detail
-
diskEncryption
@Stability(Stable) public WorkbenchInstanceGceSetupBootDisk.Builder diskEncryption(String diskEncryption)
Sets the value ofWorkbenchInstanceGceSetupBootDisk.getDiskEncryption()- Parameters:
diskEncryption- Optional. Input only. Disk encryption method used on the boot and data disks, defaults to GMEK. Possible values: ["GMEK", "CMEK"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#disk_encryption WorkbenchInstance#disk_encryption}- Returns:
this
-
diskSizeGb
@Stability(Stable) public WorkbenchInstanceGceSetupBootDisk.Builder diskSizeGb(String diskSizeGb)
Sets the value ofWorkbenchInstanceGceSetupBootDisk.getDiskSizeGb()- Parameters:
diskSizeGb- Optional. The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). If not specified, this defaults to the recommended value of 150GB. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#disk_size_gb WorkbenchInstance#disk_size_gb}- Returns:
this
-
diskType
@Stability(Stable) public WorkbenchInstanceGceSetupBootDisk.Builder diskType(String diskType)
Sets the value ofWorkbenchInstanceGceSetupBootDisk.getDiskType()- Parameters:
diskType- Optional. Indicates the type of the disk. Possible values: ["PD_STANDARD", "PD_SSD", "PD_BALANCED", "PD_EXTREME"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#disk_type WorkbenchInstance#disk_type}- Returns:
this
-
kmsKey
@Stability(Stable) public WorkbenchInstanceGceSetupBootDisk.Builder kmsKey(String kmsKey)
Sets the value ofWorkbenchInstanceGceSetupBootDisk.getKmsKey()- Parameters:
kmsKey- 'Optional. The KMS key used to encrypt the disks, only applicable if disk_encryption is CMEK. Format: 'projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}' Learn more about using your own encryption keys.' Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#kms_key WorkbenchInstance#kms_key}- Returns:
this
-
build
@Stability(Stable) public WorkbenchInstanceGceSetupBootDisk build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WorkbenchInstanceGceSetupBootDisk>- Returns:
- a new instance of
WorkbenchInstanceGceSetupBootDisk - Throws:
NullPointerException- if any required attribute was not provided
-
-