Package com.pulumi.gcp.notebooks.inputs
Class RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder
- java.lang.Object
-
- com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder
-
- Enclosing class:
- RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs
public static final class RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs defaults)
-
-
Method Detail
-
autoDelete
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder autoDelete(@Nullable com.pulumi.core.Output<java.lang.Boolean> autoDelete)
- Parameters:
autoDelete
- (Output) Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).- Returns:
- builder
-
autoDelete
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder autoDelete(java.lang.Boolean autoDelete)
- Parameters:
autoDelete
- (Output) Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).- Returns:
- builder
-
boot
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder boot(@Nullable com.pulumi.core.Output<java.lang.Boolean> boot)
- Parameters:
boot
- (Output) Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.- Returns:
- builder
-
boot
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder boot(java.lang.Boolean boot)
- Parameters:
boot
- (Output) Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.- Returns:
- builder
-
deviceName
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder deviceName(@Nullable com.pulumi.core.Output<java.lang.String> deviceName)
- Parameters:
deviceName
- (Output) Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.- Returns:
- builder
-
deviceName
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder deviceName(java.lang.String deviceName)
- Parameters:
deviceName
- (Output) Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.- Returns:
- builder
-
guestOsFeatures
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder guestOsFeatures(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> guestOsFeatures)
- Parameters:
guestOsFeatures
- (Output) Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available features, read `https://cloud.google.com/compute/docs/ images/create-delete-deprecate-private-images#guest-os-features` options. ``- Returns:
- builder
-
guestOsFeatures
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder guestOsFeatures(java.util.List<java.lang.String> guestOsFeatures)
- Parameters:
guestOsFeatures
- (Output) Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available features, read `https://cloud.google.com/compute/docs/ images/create-delete-deprecate-private-images#guest-os-features` options. ``- Returns:
- builder
-
guestOsFeatures
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder guestOsFeatures(java.lang.String... guestOsFeatures)
- Parameters:
guestOsFeatures
- (Output) Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available features, read `https://cloud.google.com/compute/docs/ images/create-delete-deprecate-private-images#guest-os-features` options. ``- Returns:
- builder
-
index
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder index(@Nullable com.pulumi.core.Output<java.lang.Integer> index)
- Parameters:
index
- (Output) Output only. A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.- Returns:
- builder
-
index
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder index(java.lang.Integer index)
- Parameters:
index
- (Output) Output only. A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.- Returns:
- builder
-
initializeParams
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder initializeParams(@Nullable com.pulumi.core.Output<RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs> initializeParams)
- Parameters:
initializeParams
- Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both. Structure is documented below.- Returns:
- builder
-
initializeParams
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder initializeParams(RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs initializeParams)
- Parameters:
initializeParams
- Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both. Structure is documented below.- Returns:
- builder
-
interface_
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder interface_(@Nullable com.pulumi.core.Output<java.lang.String> interface_)
- Parameters:
interface_
- "Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values: * NVME * SCSI".- Returns:
- builder
-
interface_
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder interface_(java.lang.String interface_)
- Parameters:
interface_
- "Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values: * NVME * SCSI".- Returns:
- builder
-
kind
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder kind(@Nullable com.pulumi.core.Output<java.lang.String> kind)
- Parameters:
kind
- (Output) Type of the resource. Always compute#attachedDisk for attached disks.- Returns:
- builder
-
kind
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder kind(java.lang.String kind)
- Parameters:
kind
- (Output) Type of the resource. Always compute#attachedDisk for attached disks.- Returns:
- builder
-
licenses
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder licenses(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> licenses)
- Parameters:
licenses
- (Output) Output only. Any valid publicly visible licenses.- Returns:
- builder
-
licenses
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder licenses(java.util.List<java.lang.String> licenses)
- Parameters:
licenses
- (Output) Output only. Any valid publicly visible licenses.- Returns:
- builder
-
licenses
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder licenses(java.lang.String... licenses)
- Parameters:
licenses
- (Output) Output only. Any valid publicly visible licenses.- Returns:
- builder
-
mode
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.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 RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.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 RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder source(@Nullable com.pulumi.core.Output<java.lang.String> source)
- Parameters:
source
- Specifies a valid partial or full URL to an existing Persistent Disk resource.- Returns:
- builder
-
source
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder source(java.lang.String source)
- Parameters:
source
- Specifies a valid partial or full URL to an existing Persistent Disk resource.- Returns:
- builder
-
type
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder type(@Nullable com.pulumi.core.Output<java.lang.String> type)
- Parameters:
type
- Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT.- Returns:
- builder
-
type
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.Builder type(java.lang.String type)
- Parameters:
type
- Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT.- Returns:
- builder
-
build
public RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs build()
-
-