Class ComputeInstanceAttachedDisk.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • source

        @Stability(Stable)
        public ComputeInstanceAttachedDisk.Builder source​(String source)
        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)
        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)
        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)
        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)
        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