Class ComputeInstanceBootDisk.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_instance.ComputeInstanceBootDisk.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInstanceBootDisk>
- Enclosing interface:
- ComputeInstanceBootDisk
@Stability(Stable) public static final class ComputeInstanceBootDisk.Builder extends Object implements software.amazon.jsii.Builder<ComputeInstanceBootDisk>
A builder forComputeInstanceBootDisk
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
autoDelete
@Stability(Stable) public ComputeInstanceBootDisk.Builder autoDelete(Boolean autoDelete)
Sets the value ofComputeInstanceBootDisk.getAutoDelete()- Parameters:
autoDelete- Whether the disk will be auto-deleted when the instance is deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#auto_delete ComputeInstance#auto_delete}- Returns:
this
-
autoDelete
@Stability(Stable) public ComputeInstanceBootDisk.Builder autoDelete(com.hashicorp.cdktf.IResolvable autoDelete)
Sets the value ofComputeInstanceBootDisk.getAutoDelete()- Parameters:
autoDelete- Whether the disk will be auto-deleted when the instance is deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#auto_delete ComputeInstance#auto_delete}- Returns:
this
-
deviceName
@Stability(Stable) public ComputeInstanceBootDisk.Builder deviceName(String deviceName)
Sets the value ofComputeInstanceBootDisk.getDeviceName()- Parameters:
deviceName- Name with which attached disk will be accessible under /dev/disk/by-id/. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#device_name ComputeInstance#device_name}- Returns:
this
-
diskEncryptionKeyRaw
@Stability(Stable) public ComputeInstanceBootDisk.Builder diskEncryptionKeyRaw(String diskEncryptionKeyRaw)
Sets the value ofComputeInstanceBootDisk.getDiskEncryptionKeyRaw()- Parameters:
diskEncryptionKeyRaw- A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#disk_encryption_key_raw ComputeInstance#disk_encryption_key_raw}- Returns:
this
-
initializeParams
@Stability(Stable) public ComputeInstanceBootDisk.Builder initializeParams(ComputeInstanceBootDiskInitializeParams initializeParams)
Sets the value ofComputeInstanceBootDisk.getInitializeParams()- Parameters:
initializeParams- initialize_params block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#initialize_params ComputeInstance#initialize_params}- Returns:
this
-
kmsKeySelfLink
@Stability(Stable) public ComputeInstanceBootDisk.Builder kmsKeySelfLink(String kmsKeySelfLink)
Sets the value ofComputeInstanceBootDisk.getKmsKeySelfLink()- Parameters:
kmsKeySelfLink- The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#kms_key_self_link ComputeInstance#kms_key_self_link}- Returns:
this
-
mode
@Stability(Stable) public ComputeInstanceBootDisk.Builder mode(String mode)
Sets the value ofComputeInstanceBootDisk.getMode()- Parameters:
mode- Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#mode ComputeInstance#mode}- Returns:
this
-
source
@Stability(Stable) public ComputeInstanceBootDisk.Builder source(String source)
Sets the value ofComputeInstanceBootDisk.getSource()- Parameters:
source- The name or self_link of the disk attached to this instance. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#source ComputeInstance#source}- Returns:
this
-
build
@Stability(Stable) public ComputeInstanceBootDisk build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInstanceBootDisk>- Returns:
- a new instance of
ComputeInstanceBootDisk - Throws:
NullPointerException- if any required attribute was not provided
-
-