Class ComputeInstanceFromTemplateBootDisk.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_instance_from_template.ComputeInstanceFromTemplateBootDisk.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInstanceFromTemplateBootDisk>
- Enclosing interface:
- ComputeInstanceFromTemplateBootDisk
@Stability(Stable) public static final class ComputeInstanceFromTemplateBootDisk.Builder extends Object implements software.amazon.jsii.Builder<ComputeInstanceFromTemplateBootDisk>
A builder forComputeInstanceFromTemplateBootDisk
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
autoDelete
@Stability(Stable) public ComputeInstanceFromTemplateBootDisk.Builder autoDelete(Boolean autoDelete)
Sets the value ofComputeInstanceFromTemplateBootDisk.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_from_template#auto_delete ComputeInstanceFromTemplate#auto_delete}- Returns:
this
-
autoDelete
@Stability(Stable) public ComputeInstanceFromTemplateBootDisk.Builder autoDelete(com.hashicorp.cdktf.IResolvable autoDelete)
Sets the value ofComputeInstanceFromTemplateBootDisk.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_from_template#auto_delete ComputeInstanceFromTemplate#auto_delete}- Returns:
this
-
deviceName
@Stability(Stable) public ComputeInstanceFromTemplateBootDisk.Builder deviceName(String deviceName)
Sets the value ofComputeInstanceFromTemplateBootDisk.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_from_template#device_name ComputeInstanceFromTemplate#device_name}- Returns:
this
-
diskEncryptionKeyRaw
@Stability(Stable) public ComputeInstanceFromTemplateBootDisk.Builder diskEncryptionKeyRaw(String diskEncryptionKeyRaw)
Sets the value ofComputeInstanceFromTemplateBootDisk.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_from_template#disk_encryption_key_raw ComputeInstanceFromTemplate#disk_encryption_key_raw}- Returns:
this
-
initializeParams
@Stability(Stable) public ComputeInstanceFromTemplateBootDisk.Builder initializeParams(ComputeInstanceFromTemplateBootDiskInitializeParams initializeParams)
Sets the value ofComputeInstanceFromTemplateBootDisk.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_from_template#initialize_params ComputeInstanceFromTemplate#initialize_params}- Returns:
this
-
kmsKeySelfLink
@Stability(Stable) public ComputeInstanceFromTemplateBootDisk.Builder kmsKeySelfLink(String kmsKeySelfLink)
Sets the value ofComputeInstanceFromTemplateBootDisk.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_from_template#kms_key_self_link ComputeInstanceFromTemplate#kms_key_self_link}- Returns:
this
-
mode
@Stability(Stable) public ComputeInstanceFromTemplateBootDisk.Builder mode(String mode)
Sets the value ofComputeInstanceFromTemplateBootDisk.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_from_template#mode ComputeInstanceFromTemplate#mode}- Returns:
this
-
source
@Stability(Stable) public ComputeInstanceFromTemplateBootDisk.Builder source(String source)
Sets the value ofComputeInstanceFromTemplateBootDisk.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_from_template#source ComputeInstanceFromTemplate#source}- Returns:
this
-
build
@Stability(Stable) public ComputeInstanceFromTemplateBootDisk build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInstanceFromTemplateBootDisk>- Returns:
- a new instance of
ComputeInstanceFromTemplateBootDisk - Throws:
NullPointerException- if any required attribute was not provided
-
-