Package com.pulumi.gcp.compute.inputs
Class InstanceBootDiskArgs.Builder
- java.lang.Object
-
- com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs.Builder
-
- Enclosing class:
- InstanceBootDiskArgs
public static final class InstanceBootDiskArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(InstanceBootDiskArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(InstanceBootDiskArgs defaults)
-
-
Method Detail
-
autoDelete
public InstanceBootDiskArgs.Builder autoDelete(@Nullable com.pulumi.core.Output<java.lang.Boolean> autoDelete)
- Parameters:
autoDelete
- Whether the disk will be auto-deleted when the instance is deleted. Defaults to true.- Returns:
- builder
-
autoDelete
public InstanceBootDiskArgs.Builder autoDelete(java.lang.Boolean autoDelete)
- Parameters:
autoDelete
- Whether the disk will be auto-deleted when the instance is deleted. Defaults to true.- Returns:
- builder
-
deviceName
public InstanceBootDiskArgs.Builder deviceName(@Nullable com.pulumi.core.Output<java.lang.String> deviceName)
- Parameters:
deviceName
- Name with which attached disk will be accessible. On the instance, this device will be `/dev/disk/by-id/google-{{device_name}}`.- Returns:
- builder
-
deviceName
public InstanceBootDiskArgs.Builder deviceName(java.lang.String deviceName)
- Parameters:
deviceName
- Name with which attached disk will be accessible. On the instance, this device will be `/dev/disk/by-id/google-{{device_name}}`.- Returns:
- builder
-
diskEncryptionKeyRaw
public InstanceBootDiskArgs.Builder diskEncryptionKeyRaw(@Nullable com.pulumi.core.Output<java.lang.String> diskEncryptionKeyRaw)
- Parameters:
diskEncryptionKeyRaw
- A 256-bit [customer-supplied encryption key] (https://cloud.google.com/compute/docs/disks/customer-supplied-encryption), encoded in [RFC 4648 base64](https://tools.ietf.org/html/rfc4648#section-4) to encrypt this disk. Only one of `kms_key_self_link` and `disk_encryption_key_raw` may be set.- Returns:
- builder
-
diskEncryptionKeyRaw
public InstanceBootDiskArgs.Builder diskEncryptionKeyRaw(java.lang.String diskEncryptionKeyRaw)
- Parameters:
diskEncryptionKeyRaw
- A 256-bit [customer-supplied encryption key] (https://cloud.google.com/compute/docs/disks/customer-supplied-encryption), encoded in [RFC 4648 base64](https://tools.ietf.org/html/rfc4648#section-4) to encrypt this disk. Only one of `kms_key_self_link` and `disk_encryption_key_raw` may be set.- Returns:
- builder
-
diskEncryptionKeySha256
public InstanceBootDiskArgs.Builder diskEncryptionKeySha256(@Nullable com.pulumi.core.Output<java.lang.String> diskEncryptionKeySha256)
-
diskEncryptionKeySha256
public InstanceBootDiskArgs.Builder diskEncryptionKeySha256(java.lang.String diskEncryptionKeySha256)
-
initializeParams
public InstanceBootDiskArgs.Builder initializeParams(@Nullable com.pulumi.core.Output<InstanceBootDiskInitializeParamsArgs> initializeParams)
- Parameters:
initializeParams
- Parameters for a new disk that will be created alongside the new instance. Either `initialize_params` or `source` must be set. Structure is documented below.- Returns:
- builder
-
initializeParams
public InstanceBootDiskArgs.Builder initializeParams(InstanceBootDiskInitializeParamsArgs initializeParams)
- Parameters:
initializeParams
- Parameters for a new disk that will be created alongside the new instance. Either `initialize_params` or `source` must be set. Structure is documented below.- Returns:
- builder
-
kmsKeySelfLink
public InstanceBootDiskArgs.Builder kmsKeySelfLink(@Nullable com.pulumi.core.Output<java.lang.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.- Returns:
- builder
-
kmsKeySelfLink
public InstanceBootDiskArgs.Builder kmsKeySelfLink(java.lang.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.- Returns:
- builder
-
mode
public InstanceBootDiskArgs.Builder mode(@Nullable com.pulumi.core.Output<java.lang.String> mode)
- Parameters:
mode
- The mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`. If not specified, the default is to attach the disk in `READ_WRITE` mode.- Returns:
- builder
-
mode
public InstanceBootDiskArgs.Builder mode(java.lang.String mode)
- Parameters:
mode
- The mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`. If not specified, the default is to attach the disk in `READ_WRITE` mode.- Returns:
- builder
-
source
public InstanceBootDiskArgs.Builder source(@Nullable com.pulumi.core.Output<java.lang.String> source)
- Parameters:
source
- The name or self_link of the existing disk (such as those managed by `gcp.compute.Disk`) or disk image. To create an instance from a snapshot, first create a `gcp.compute.Disk` from a snapshot and reference it here.- Returns:
- builder
-
source
public InstanceBootDiskArgs.Builder source(java.lang.String source)
- Parameters:
source
- The name or self_link of the existing disk (such as those managed by `gcp.compute.Disk`) or disk image. To create an instance from a snapshot, first create a `gcp.compute.Disk` from a snapshot and reference it here.- Returns:
- builder
-
build
public InstanceBootDiskArgs build()
-
-