Package com.pulumi.gcp.compute.inputs
Class DiskState.Builder
- java.lang.Object
-
- com.pulumi.gcp.compute.inputs.DiskState.Builder
-
- Enclosing class:
- DiskState
public static final class DiskState.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DiskState.Builder
asyncPrimaryDisk(com.pulumi.core.Output<DiskAsyncPrimaryDiskArgs> asyncPrimaryDisk)
DiskState.Builder
asyncPrimaryDisk(DiskAsyncPrimaryDiskArgs asyncPrimaryDisk)
DiskState
build()
DiskState.Builder
creationTimestamp(com.pulumi.core.Output<java.lang.String> creationTimestamp)
DiskState.Builder
creationTimestamp(java.lang.String creationTimestamp)
DiskState.Builder
description(com.pulumi.core.Output<java.lang.String> description)
DiskState.Builder
description(java.lang.String description)
DiskState.Builder
diskEncryptionKey(com.pulumi.core.Output<DiskDiskEncryptionKeyArgs> diskEncryptionKey)
DiskState.Builder
diskEncryptionKey(DiskDiskEncryptionKeyArgs diskEncryptionKey)
DiskState.Builder
enableConfidentialCompute(com.pulumi.core.Output<java.lang.Boolean> enableConfidentialCompute)
DiskState.Builder
enableConfidentialCompute(java.lang.Boolean enableConfidentialCompute)
DiskState.Builder
guestOsFeatures(com.pulumi.core.Output<java.util.List<DiskGuestOsFeatureArgs>> guestOsFeatures)
DiskState.Builder
guestOsFeatures(DiskGuestOsFeatureArgs... guestOsFeatures)
DiskState.Builder
guestOsFeatures(java.util.List<DiskGuestOsFeatureArgs> guestOsFeatures)
DiskState.Builder
image(com.pulumi.core.Output<java.lang.String> image)
DiskState.Builder
image(java.lang.String image)
DiskState.Builder
interface_(com.pulumi.core.Output<java.lang.String> interface_)
Deprecated.`interface` is deprecated and will be removed in a future major release.DiskState.Builder
interface_(java.lang.String interface_)
Deprecated.`interface` is deprecated and will be removed in a future major release.DiskState.Builder
labelFingerprint(com.pulumi.core.Output<java.lang.String> labelFingerprint)
DiskState.Builder
labelFingerprint(java.lang.String labelFingerprint)
DiskState.Builder
labels(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> labels)
DiskState.Builder
labels(java.util.Map<java.lang.String,java.lang.String> labels)
DiskState.Builder
lastAttachTimestamp(com.pulumi.core.Output<java.lang.String> lastAttachTimestamp)
DiskState.Builder
lastAttachTimestamp(java.lang.String lastAttachTimestamp)
DiskState.Builder
lastDetachTimestamp(com.pulumi.core.Output<java.lang.String> lastDetachTimestamp)
DiskState.Builder
lastDetachTimestamp(java.lang.String lastDetachTimestamp)
DiskState.Builder
licenses(com.pulumi.core.Output<java.util.List<java.lang.String>> licenses)
DiskState.Builder
licenses(java.lang.String... licenses)
DiskState.Builder
licenses(java.util.List<java.lang.String> licenses)
DiskState.Builder
multiWriter(com.pulumi.core.Output<java.lang.Boolean> multiWriter)
DiskState.Builder
multiWriter(java.lang.Boolean multiWriter)
DiskState.Builder
name(com.pulumi.core.Output<java.lang.String> name)
DiskState.Builder
name(java.lang.String name)
DiskState.Builder
physicalBlockSizeBytes(com.pulumi.core.Output<java.lang.Integer> physicalBlockSizeBytes)
DiskState.Builder
physicalBlockSizeBytes(java.lang.Integer physicalBlockSizeBytes)
DiskState.Builder
project(com.pulumi.core.Output<java.lang.String> project)
DiskState.Builder
project(java.lang.String project)
DiskState.Builder
provisionedIops(com.pulumi.core.Output<java.lang.Integer> provisionedIops)
DiskState.Builder
provisionedIops(java.lang.Integer provisionedIops)
DiskState.Builder
provisionedThroughput(com.pulumi.core.Output<java.lang.Integer> provisionedThroughput)
DiskState.Builder
provisionedThroughput(java.lang.Integer provisionedThroughput)
DiskState.Builder
resourcePolicies(com.pulumi.core.Output<java.util.List<java.lang.String>> resourcePolicies)
DiskState.Builder
resourcePolicies(java.lang.String... resourcePolicies)
DiskState.Builder
resourcePolicies(java.util.List<java.lang.String> resourcePolicies)
DiskState.Builder
selfLink(com.pulumi.core.Output<java.lang.String> selfLink)
DiskState.Builder
selfLink(java.lang.String selfLink)
DiskState.Builder
size(com.pulumi.core.Output<java.lang.Integer> size)
DiskState.Builder
size(java.lang.Integer size)
DiskState.Builder
snapshot(com.pulumi.core.Output<java.lang.String> snapshot)
DiskState.Builder
snapshot(java.lang.String snapshot)
DiskState.Builder
sourceDisk(com.pulumi.core.Output<java.lang.String> sourceDisk)
DiskState.Builder
sourceDisk(java.lang.String sourceDisk)
DiskState.Builder
sourceDiskId(com.pulumi.core.Output<java.lang.String> sourceDiskId)
DiskState.Builder
sourceDiskId(java.lang.String sourceDiskId)
DiskState.Builder
sourceImageEncryptionKey(com.pulumi.core.Output<DiskSourceImageEncryptionKeyArgs> sourceImageEncryptionKey)
DiskState.Builder
sourceImageEncryptionKey(DiskSourceImageEncryptionKeyArgs sourceImageEncryptionKey)
DiskState.Builder
sourceImageId(com.pulumi.core.Output<java.lang.String> sourceImageId)
DiskState.Builder
sourceImageId(java.lang.String sourceImageId)
DiskState.Builder
sourceSnapshotEncryptionKey(com.pulumi.core.Output<DiskSourceSnapshotEncryptionKeyArgs> sourceSnapshotEncryptionKey)
DiskState.Builder
sourceSnapshotEncryptionKey(DiskSourceSnapshotEncryptionKeyArgs sourceSnapshotEncryptionKey)
DiskState.Builder
sourceSnapshotId(com.pulumi.core.Output<java.lang.String> sourceSnapshotId)
DiskState.Builder
sourceSnapshotId(java.lang.String sourceSnapshotId)
DiskState.Builder
type(com.pulumi.core.Output<java.lang.String> type)
DiskState.Builder
type(java.lang.String type)
DiskState.Builder
users(com.pulumi.core.Output<java.util.List<java.lang.String>> users)
DiskState.Builder
users(java.lang.String... users)
DiskState.Builder
users(java.util.List<java.lang.String> users)
DiskState.Builder
zone(com.pulumi.core.Output<java.lang.String> zone)
DiskState.Builder
zone(java.lang.String zone)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(DiskState defaults)
-
-
Method Detail
-
asyncPrimaryDisk
public DiskState.Builder asyncPrimaryDisk(@Nullable com.pulumi.core.Output<DiskAsyncPrimaryDiskArgs> asyncPrimaryDisk)
- Parameters:
asyncPrimaryDisk
- A nested object resource Structure is documented below.- Returns:
- builder
-
asyncPrimaryDisk
public DiskState.Builder asyncPrimaryDisk(DiskAsyncPrimaryDiskArgs asyncPrimaryDisk)
- Parameters:
asyncPrimaryDisk
- A nested object resource Structure is documented below.- Returns:
- builder
-
creationTimestamp
public DiskState.Builder creationTimestamp(@Nullable com.pulumi.core.Output<java.lang.String> creationTimestamp)
- Parameters:
creationTimestamp
- Creation timestamp in RFC3339 text format.- Returns:
- builder
-
creationTimestamp
public DiskState.Builder creationTimestamp(java.lang.String creationTimestamp)
- Parameters:
creationTimestamp
- Creation timestamp in RFC3339 text format.- Returns:
- builder
-
description
public DiskState.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description
- An optional description of this resource. Provide this property when you create the resource.- Returns:
- builder
-
description
public DiskState.Builder description(java.lang.String description)
- Parameters:
description
- An optional description of this resource. Provide this property when you create the resource.- Returns:
- builder
-
diskEncryptionKey
public DiskState.Builder diskEncryptionKey(@Nullable com.pulumi.core.Output<DiskDiskEncryptionKeyArgs> diskEncryptionKey)
- Parameters:
diskEncryptionKey
- Encrypts the disk using a customer-supplied encryption key. After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later (e.g. to create a disk snapshot or an image, or to attach the disk to a virtual machine). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the disk, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Structure is documented below.- Returns:
- builder
-
diskEncryptionKey
public DiskState.Builder diskEncryptionKey(DiskDiskEncryptionKeyArgs diskEncryptionKey)
- Parameters:
diskEncryptionKey
- Encrypts the disk using a customer-supplied encryption key. After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later (e.g. to create a disk snapshot or an image, or to attach the disk to a virtual machine). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the disk, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Structure is documented below.- Returns:
- builder
-
enableConfidentialCompute
public DiskState.Builder enableConfidentialCompute(@Nullable com.pulumi.core.Output<java.lang.Boolean> enableConfidentialCompute)
- Parameters:
enableConfidentialCompute
- Whether this disk is using confidential compute mode. Note: Only supported on hyperdisk skus, disk_encryption_key is required when setting to true- Returns:
- builder
-
enableConfidentialCompute
public DiskState.Builder enableConfidentialCompute(java.lang.Boolean enableConfidentialCompute)
- Parameters:
enableConfidentialCompute
- Whether this disk is using confidential compute mode. Note: Only supported on hyperdisk skus, disk_encryption_key is required when setting to true- Returns:
- builder
-
guestOsFeatures
public DiskState.Builder guestOsFeatures(@Nullable com.pulumi.core.Output<java.util.List<DiskGuestOsFeatureArgs>> guestOsFeatures)
- Parameters:
guestOsFeatures
- A list of features to enable on the guest operating system. Applicable only for bootable disks. Structure is documented below.- Returns:
- builder
-
guestOsFeatures
public DiskState.Builder guestOsFeatures(java.util.List<DiskGuestOsFeatureArgs> guestOsFeatures)
- Parameters:
guestOsFeatures
- A list of features to enable on the guest operating system. Applicable only for bootable disks. Structure is documented below.- Returns:
- builder
-
guestOsFeatures
public DiskState.Builder guestOsFeatures(DiskGuestOsFeatureArgs... guestOsFeatures)
- Parameters:
guestOsFeatures
- A list of features to enable on the guest operating system. Applicable only for bootable disks. Structure is documented below.- Returns:
- builder
-
image
public DiskState.Builder image(@Nullable com.pulumi.core.Output<java.lang.String> image)
- Parameters:
image
- The image from which to initialize this disk. This can be one of: the image's `self_link`, `projects/{project}/global/images/{image}`, `projects/{project}/global/images/family/{family}`, `global/images/{image}`, `global/images/family/{family}`, `family/{family}`, `{project}/{family}`, `{project}/{image}`, `{family}`, or `{image}`. If referred by family, the images names must include the family name. If they don't, use the [gcp.compute.Image data source](https://www.terraform.io/docs/providers/google/d/compute_image.html). For instance, the image `centos-6-v20180104` includes its family name `centos-6`. These images can be referred by family name here.- Returns:
- builder
-
image
public DiskState.Builder image(java.lang.String image)
- Parameters:
image
- The image from which to initialize this disk. This can be one of: the image's `self_link`, `projects/{project}/global/images/{image}`, `projects/{project}/global/images/family/{family}`, `global/images/{image}`, `global/images/family/{family}`, `family/{family}`, `{project}/{family}`, `{project}/{image}`, `{family}`, or `{image}`. If referred by family, the images names must include the family name. If they don't, use the [gcp.compute.Image data source](https://www.terraform.io/docs/providers/google/d/compute_image.html). For instance, the image `centos-6-v20180104` includes its family name `centos-6`. These images can be referred by family name here.- Returns:
- builder
-
interface_
@Deprecated public DiskState.Builder interface_(@Nullable com.pulumi.core.Output<java.lang.String> interface_)
Deprecated.`interface` is deprecated and will be removed in a future major release. This field is no longer used and can be safely removed from your configurations; disk interfaces are automatically determined on attachment.- Parameters:
interface_
- (Optional, Deprecated) Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. > **Warning:** `interface` is deprecated and will be removed in a future major release. This field is no longer used and can be safely removed from your configurations; disk interfaces are automatically determined on attachment.- Returns:
- builder
-
interface_
@Deprecated public DiskState.Builder interface_(java.lang.String interface_)
Deprecated.`interface` is deprecated and will be removed in a future major release. This field is no longer used and can be safely removed from your configurations; disk interfaces are automatically determined on attachment.- Parameters:
interface_
- (Optional, Deprecated) Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. > **Warning:** `interface` is deprecated and will be removed in a future major release. This field is no longer used and can be safely removed from your configurations; disk interfaces are automatically determined on attachment.- Returns:
- builder
-
labelFingerprint
public DiskState.Builder labelFingerprint(@Nullable com.pulumi.core.Output<java.lang.String> labelFingerprint)
- Parameters:
labelFingerprint
- The fingerprint used for optimistic locking of this resource. Used internally during updates.- Returns:
- builder
-
labelFingerprint
public DiskState.Builder labelFingerprint(java.lang.String labelFingerprint)
- Parameters:
labelFingerprint
- The fingerprint used for optimistic locking of this resource. Used internally during updates.- Returns:
- builder
-
labels
public DiskState.Builder labels(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> labels)
- Parameters:
labels
- Labels to apply to this disk. A list of key->value pairs.- Returns:
- builder
-
labels
public DiskState.Builder labels(java.util.Map<java.lang.String,java.lang.String> labels)
- Parameters:
labels
- Labels to apply to this disk. A list of key->value pairs.- Returns:
- builder
-
lastAttachTimestamp
public DiskState.Builder lastAttachTimestamp(@Nullable com.pulumi.core.Output<java.lang.String> lastAttachTimestamp)
- Parameters:
lastAttachTimestamp
- Last attach timestamp in RFC3339 text format.- Returns:
- builder
-
lastAttachTimestamp
public DiskState.Builder lastAttachTimestamp(java.lang.String lastAttachTimestamp)
- Parameters:
lastAttachTimestamp
- Last attach timestamp in RFC3339 text format.- Returns:
- builder
-
lastDetachTimestamp
public DiskState.Builder lastDetachTimestamp(@Nullable com.pulumi.core.Output<java.lang.String> lastDetachTimestamp)
- Parameters:
lastDetachTimestamp
- Last detach timestamp in RFC3339 text format.- Returns:
- builder
-
lastDetachTimestamp
public DiskState.Builder lastDetachTimestamp(java.lang.String lastDetachTimestamp)
- Parameters:
lastDetachTimestamp
- Last detach timestamp in RFC3339 text format.- Returns:
- builder
-
licenses
public DiskState.Builder licenses(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> licenses)
- Parameters:
licenses
- Any applicable license URI.- Returns:
- builder
-
licenses
public DiskState.Builder licenses(java.util.List<java.lang.String> licenses)
- Parameters:
licenses
- Any applicable license URI.- Returns:
- builder
-
licenses
public DiskState.Builder licenses(java.lang.String... licenses)
- Parameters:
licenses
- Any applicable license URI.- Returns:
- builder
-
multiWriter
public DiskState.Builder multiWriter(@Nullable com.pulumi.core.Output<java.lang.Boolean> multiWriter)
- Parameters:
multiWriter
- Indicates whether or not the disk can be read/write attached to more than one instance.- Returns:
- builder
-
multiWriter
public DiskState.Builder multiWriter(java.lang.Boolean multiWriter)
- Parameters:
multiWriter
- Indicates whether or not the disk can be read/write attached to more than one instance.- Returns:
- builder
-
name
public DiskState.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name
- Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `a-z?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. ***- Returns:
- builder
-
name
public DiskState.Builder name(java.lang.String name)
- Parameters:
name
- Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `a-z?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. ***- Returns:
- builder
-
physicalBlockSizeBytes
public DiskState.Builder physicalBlockSizeBytes(@Nullable com.pulumi.core.Output<java.lang.Integer> physicalBlockSizeBytes)
- Parameters:
physicalBlockSizeBytes
- Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 16384, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller's project.- Returns:
- builder
-
physicalBlockSizeBytes
public DiskState.Builder physicalBlockSizeBytes(java.lang.Integer physicalBlockSizeBytes)
- Parameters:
physicalBlockSizeBytes
- Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 16384, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller's project.- Returns:
- builder
-
project
public DiskState.Builder project(@Nullable com.pulumi.core.Output<java.lang.String> project)
- Parameters:
project
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.- Returns:
- builder
-
project
public DiskState.Builder project(java.lang.String project)
- Parameters:
project
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.- Returns:
- builder
-
provisionedIops
public DiskState.Builder provisionedIops(@Nullable com.pulumi.core.Output<java.lang.Integer> provisionedIops)
- Parameters:
provisionedIops
- Indicates how many IOPS must be provisioned for the disk. Note: Updating currently is only supported by hyperdisk skus without the need to delete and recreate the disk, hyperdisk allows for an update of IOPS every 4 hours. To update your hyperdisk more frequently, you'll need to manually delete and recreate it- Returns:
- builder
-
provisionedIops
public DiskState.Builder provisionedIops(java.lang.Integer provisionedIops)
- Parameters:
provisionedIops
- Indicates how many IOPS must be provisioned for the disk. Note: Updating currently is only supported by hyperdisk skus without the need to delete and recreate the disk, hyperdisk allows for an update of IOPS every 4 hours. To update your hyperdisk more frequently, you'll need to manually delete and recreate it- Returns:
- builder
-
provisionedThroughput
public DiskState.Builder provisionedThroughput(@Nullable com.pulumi.core.Output<java.lang.Integer> provisionedThroughput)
- Parameters:
provisionedThroughput
- Indicates how much Throughput must be provisioned for the disk. Note: Updating currently is only supported by hyperdisk skus without the need to delete and recreate the disk, hyperdisk allows for an update of Throughput every 4 hours. To update your hyperdisk more frequently, you'll need to manually delete and recreate it- Returns:
- builder
-
provisionedThroughput
public DiskState.Builder provisionedThroughput(java.lang.Integer provisionedThroughput)
- Parameters:
provisionedThroughput
- Indicates how much Throughput must be provisioned for the disk. Note: Updating currently is only supported by hyperdisk skus without the need to delete and recreate the disk, hyperdisk allows for an update of Throughput every 4 hours. To update your hyperdisk more frequently, you'll need to manually delete and recreate it- Returns:
- builder
-
resourcePolicies
public DiskState.Builder resourcePolicies(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> resourcePolicies)
- Parameters:
resourcePolicies
- Resource policies applied to this disk for automatic snapshot creations. ~>**NOTE** This value does not support updating the resource policy, as resource policies can not be updated more than one at a time. Use `gcp.compute.DiskResourcePolicyAttachment` to allow for updating the resource policy attached to the disk.- Returns:
- builder
-
resourcePolicies
public DiskState.Builder resourcePolicies(java.util.List<java.lang.String> resourcePolicies)
- Parameters:
resourcePolicies
- Resource policies applied to this disk for automatic snapshot creations. ~>**NOTE** This value does not support updating the resource policy, as resource policies can not be updated more than one at a time. Use `gcp.compute.DiskResourcePolicyAttachment` to allow for updating the resource policy attached to the disk.- Returns:
- builder
-
resourcePolicies
public DiskState.Builder resourcePolicies(java.lang.String... resourcePolicies)
- Parameters:
resourcePolicies
- Resource policies applied to this disk for automatic snapshot creations. ~>**NOTE** This value does not support updating the resource policy, as resource policies can not be updated more than one at a time. Use `gcp.compute.DiskResourcePolicyAttachment` to allow for updating the resource policy attached to the disk.- Returns:
- builder
-
selfLink
public DiskState.Builder selfLink(@Nullable com.pulumi.core.Output<java.lang.String> selfLink)
- Parameters:
selfLink
- The URI of the created resource.- Returns:
- builder
-
selfLink
public DiskState.Builder selfLink(java.lang.String selfLink)
- Parameters:
selfLink
- The URI of the created resource.- Returns:
- builder
-
size
public DiskState.Builder size(@Nullable com.pulumi.core.Output<java.lang.Integer> size)
- Parameters:
size
- Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the `image` or `snapshot` parameter, or specify it alone to create an empty persistent disk. If you specify this field along with `image` or `snapshot`, the value must not be less than the size of the image or the size of the snapshot. ~>**NOTE** If you change the size, the provider updates the disk size if upsizing is detected but recreates the disk if downsizing is requested. You can add `lifecycle.prevent_destroy` in the config to prevent destroying and recreating.- Returns:
- builder
-
size
public DiskState.Builder size(java.lang.Integer size)
- Parameters:
size
- Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the `image` or `snapshot` parameter, or specify it alone to create an empty persistent disk. If you specify this field along with `image` or `snapshot`, the value must not be less than the size of the image or the size of the snapshot. ~>**NOTE** If you change the size, the provider updates the disk size if upsizing is detected but recreates the disk if downsizing is requested. You can add `lifecycle.prevent_destroy` in the config to prevent destroying and recreating.- Returns:
- builder
-
snapshot
public DiskState.Builder snapshot(@Nullable com.pulumi.core.Output<java.lang.String> snapshot)
- Parameters:
snapshot
- The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. If the snapshot is in another project than this disk, you must supply a full URL. For example, the following are valid values: * 'https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot' * 'projects/project/global/snapshots/snapshot' * 'global/snapshots/snapshot' * 'snapshot'- Returns:
- builder
-
snapshot
public DiskState.Builder snapshot(java.lang.String snapshot)
- Parameters:
snapshot
- The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. If the snapshot is in another project than this disk, you must supply a full URL. For example, the following are valid values: * 'https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot' * 'projects/project/global/snapshots/snapshot' * 'global/snapshots/snapshot' * 'snapshot'- Returns:
- builder
-
sourceDisk
public DiskState.Builder sourceDisk(@Nullable com.pulumi.core.Output<java.lang.String> sourceDisk)
- Parameters:
sourceDisk
- The source disk used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: * https://www.googleapis.com/compute/v1/projects/{project}/zones/{zone}/disks/{disk} * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/disks/{disk} * projects/{project}/zones/{zone}/disks/{disk} * projects/{project}/regions/{region}/disks/{disk} * zones/{zone}/disks/{disk} * regions/{region}/disks/{disk}- Returns:
- builder
-
sourceDisk
public DiskState.Builder sourceDisk(java.lang.String sourceDisk)
- Parameters:
sourceDisk
- The source disk used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: * https://www.googleapis.com/compute/v1/projects/{project}/zones/{zone}/disks/{disk} * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/disks/{disk} * projects/{project}/zones/{zone}/disks/{disk} * projects/{project}/regions/{region}/disks/{disk} * zones/{zone}/disks/{disk} * regions/{region}/disks/{disk}- Returns:
- builder
-
sourceDiskId
public DiskState.Builder sourceDiskId(@Nullable com.pulumi.core.Output<java.lang.String> sourceDiskId)
- Parameters:
sourceDiskId
- The ID value of the disk used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given disk name.- Returns:
- builder
-
sourceDiskId
public DiskState.Builder sourceDiskId(java.lang.String sourceDiskId)
- Parameters:
sourceDiskId
- The ID value of the disk used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given disk name.- Returns:
- builder
-
sourceImageEncryptionKey
public DiskState.Builder sourceImageEncryptionKey(@Nullable com.pulumi.core.Output<DiskSourceImageEncryptionKeyArgs> sourceImageEncryptionKey)
- Parameters:
sourceImageEncryptionKey
- The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. Structure is documented below.- Returns:
- builder
-
sourceImageEncryptionKey
public DiskState.Builder sourceImageEncryptionKey(DiskSourceImageEncryptionKeyArgs sourceImageEncryptionKey)
- Parameters:
sourceImageEncryptionKey
- The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. Structure is documented below.- Returns:
- builder
-
sourceImageId
public DiskState.Builder sourceImageId(@Nullable com.pulumi.core.Output<java.lang.String> sourceImageId)
- Parameters:
sourceImageId
- The ID value of the image used to create this disk. This value identifies the exact image that was used to create this persistent disk. For example, if you created the persistent disk from an image that was later deleted and recreated under the same name, the source image ID would identify the exact version of the image that was used.- Returns:
- builder
-
sourceImageId
public DiskState.Builder sourceImageId(java.lang.String sourceImageId)
- Parameters:
sourceImageId
- The ID value of the image used to create this disk. This value identifies the exact image that was used to create this persistent disk. For example, if you created the persistent disk from an image that was later deleted and recreated under the same name, the source image ID would identify the exact version of the image that was used.- Returns:
- builder
-
sourceSnapshotEncryptionKey
public DiskState.Builder sourceSnapshotEncryptionKey(@Nullable com.pulumi.core.Output<DiskSourceSnapshotEncryptionKeyArgs> sourceSnapshotEncryptionKey)
- Parameters:
sourceSnapshotEncryptionKey
- The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. Structure is documented below.- Returns:
- builder
-
sourceSnapshotEncryptionKey
public DiskState.Builder sourceSnapshotEncryptionKey(DiskSourceSnapshotEncryptionKeyArgs sourceSnapshotEncryptionKey)
- Parameters:
sourceSnapshotEncryptionKey
- The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. Structure is documented below.- Returns:
- builder
-
sourceSnapshotId
public DiskState.Builder sourceSnapshotId(@Nullable com.pulumi.core.Output<java.lang.String> sourceSnapshotId)
- Parameters:
sourceSnapshotId
- The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used.- Returns:
- builder
-
sourceSnapshotId
public DiskState.Builder sourceSnapshotId(java.lang.String sourceSnapshotId)
- Parameters:
sourceSnapshotId
- The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used.- Returns:
- builder
-
type
public DiskState.Builder type(@Nullable com.pulumi.core.Output<java.lang.String> type)
- Parameters:
type
- URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk.- Returns:
- builder
-
type
public DiskState.Builder type(java.lang.String type)
- Parameters:
type
- URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk.- Returns:
- builder
-
users
public DiskState.Builder users(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> users)
- Parameters:
users
- Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance- Returns:
- builder
-
users
public DiskState.Builder users(java.util.List<java.lang.String> users)
- Parameters:
users
- Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance- Returns:
- builder
-
users
public DiskState.Builder users(java.lang.String... users)
- Parameters:
users
- Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance- Returns:
- builder
-
zone
public DiskState.Builder zone(@Nullable com.pulumi.core.Output<java.lang.String> zone)
- Parameters:
zone
- A reference to the zone where the disk resides.- Returns:
- builder
-
zone
public DiskState.Builder zone(java.lang.String zone)
- Parameters:
zone
- A reference to the zone where the disk resides.- Returns:
- builder
-
build
public DiskState build()
-
-