Class ComputeInstanceAttachedDisk.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_instance.ComputeInstanceAttachedDisk.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInstanceAttachedDisk>
- Enclosing interface:
- ComputeInstanceAttachedDisk
@Stability(Stable) public static final class ComputeInstanceAttachedDisk.Builder extends Object implements software.amazon.jsii.Builder<ComputeInstanceAttachedDisk>
A builder forComputeInstanceAttachedDisk
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeInstanceAttachedDiskbuild()Builds the configured instance.ComputeInstanceAttachedDisk.BuilderdeviceName(String deviceName)Sets the value ofComputeInstanceAttachedDisk.getDeviceName()ComputeInstanceAttachedDisk.BuilderdiskEncryptionKeyRaw(String diskEncryptionKeyRaw)Sets the value ofComputeInstanceAttachedDisk.getDiskEncryptionKeyRaw()ComputeInstanceAttachedDisk.BuilderkmsKeySelfLink(String kmsKeySelfLink)Sets the value ofComputeInstanceAttachedDisk.getKmsKeySelfLink()ComputeInstanceAttachedDisk.Buildermode(String mode)Sets the value ofComputeInstanceAttachedDisk.getMode()ComputeInstanceAttachedDisk.Buildersource(String source)Sets the value ofComputeInstanceAttachedDisk.getSource()
-
-
-
Method Detail
-
source
@Stability(Stable) public ComputeInstanceAttachedDisk.Builder source(String source)
Sets the value ofComputeInstanceAttachedDisk.getSource()- Parameters:
source- The name or self_link of the disk attached to this instance. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#source ComputeInstance#source}- Returns:
this
-
deviceName
@Stability(Stable) public ComputeInstanceAttachedDisk.Builder deviceName(String deviceName)
Sets the value ofComputeInstanceAttachedDisk.getDeviceName()- Parameters:
deviceName- Name with which the attached disk is 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 ComputeInstanceAttachedDisk.Builder diskEncryptionKeyRaw(String diskEncryptionKeyRaw)
Sets the value ofComputeInstanceAttachedDisk.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
-
kmsKeySelfLink
@Stability(Stable) public ComputeInstanceAttachedDisk.Builder kmsKeySelfLink(String kmsKeySelfLink)
Sets the value ofComputeInstanceAttachedDisk.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 ComputeInstanceAttachedDisk.Builder mode(String mode)
Sets the value ofComputeInstanceAttachedDisk.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
-
build
@Stability(Stable) public ComputeInstanceAttachedDisk build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInstanceAttachedDisk>- Returns:
- a new instance of
ComputeInstanceAttachedDisk - Throws:
NullPointerException- if any required attribute was not provided
-
-