public final class AttachedDisk
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
AttachedDisk() |
| Modifier and Type | Method and Description |
|---|---|
AttachedDisk |
clone() |
java.lang.Boolean |
getAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the
disk is detached from the instance).
|
java.lang.Boolean |
getBoot()
Indicates that this is a boot disk.
|
java.lang.String |
getDeviceName()
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.
|
java.lang.Integer |
getIndex()
Assigns a zero-based index to this disk, where 0 is reserved for the boot disk.
|
AttachedDiskInitializeParams |
getInitializeParams()
[Input Only] Specifies the parameters for a new disk that will be created alongside the new
instance.
|
java.lang.String |
getInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.
|
java.lang.String |
getKind()
[Output Only] Type of the resource.
|
java.util.List<java.lang.String> |
getLicenses()
[Output Only] Any valid publicly visible licenses.
|
java.lang.String |
getMode()
The mode in which to attach this disk, either READ_WRITE or READ_ONLY.
|
java.lang.String |
getSource()
Specifies a valid partial or full URL to an existing Persistent Disk resource.
|
java.lang.String |
getType()
Specifies the type of the disk, either SCRATCH or PERSISTENT.
|
AttachedDisk |
set(java.lang.String fieldName,
java.lang.Object value) |
AttachedDisk |
setAutoDelete(java.lang.Boolean autoDelete)
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the
disk is detached from the instance).
|
AttachedDisk |
setBoot(java.lang.Boolean boot)
Indicates that this is a boot disk.
|
AttachedDisk |
setDeviceName(java.lang.String deviceName)
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.
|
AttachedDisk |
setIndex(java.lang.Integer index)
Assigns a zero-based index to this disk, where 0 is reserved for the boot disk.
|
AttachedDisk |
setInitializeParams(AttachedDiskInitializeParams initializeParams)
[Input Only] Specifies the parameters for a new disk that will be created alongside the new
instance.
|
AttachedDisk |
setInterface(java.lang.String interface__)
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.
|
AttachedDisk |
setKind(java.lang.String kind)
[Output Only] Type of the resource.
|
AttachedDisk |
setLicenses(java.util.List<java.lang.String> licenses)
[Output Only] Any valid publicly visible licenses.
|
AttachedDisk |
setMode(java.lang.String mode)
The mode in which to attach this disk, either READ_WRITE or READ_ONLY.
|
AttachedDisk |
setSource(java.lang.String source)
Specifies a valid partial or full URL to an existing Persistent Disk resource.
|
AttachedDisk |
setType(java.lang.String type)
Specifies the type of the disk, either SCRATCH or PERSISTENT.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.Boolean getAutoDelete()
null for nonepublic AttachedDisk setAutoDelete(java.lang.Boolean autoDelete)
autoDelete - autoDelete or null for nonepublic java.lang.Boolean getBoot()
null for nonepublic AttachedDisk setBoot(java.lang.Boolean boot)
boot - boot or null for nonepublic java.lang.String getDeviceName()
null for nonepublic AttachedDisk setDeviceName(java.lang.String deviceName)
deviceName - deviceName or null for nonepublic java.lang.Integer getIndex()
null for nonepublic AttachedDisk setIndex(java.lang.Integer index)
index - index or null for nonepublic AttachedDiskInitializeParams getInitializeParams()
null for nonepublic AttachedDisk setInitializeParams(AttachedDiskInitializeParams initializeParams)
initializeParams - initializeParams or null for nonepublic java.lang.String getInterface()
null for nonepublic AttachedDisk setInterface(java.lang.String interface__)
interface__ - interface__ or null for nonepublic java.lang.String getKind()
null for nonepublic AttachedDisk setKind(java.lang.String kind)
kind - kind or null for nonepublic java.util.List<java.lang.String> getLicenses()
null for nonepublic AttachedDisk setLicenses(java.util.List<java.lang.String> licenses)
licenses - licenses or null for nonepublic java.lang.String getMode()
null for nonepublic AttachedDisk setMode(java.lang.String mode)
mode - mode or null for nonepublic java.lang.String getSource()
null for nonepublic AttachedDisk setSource(java.lang.String source)
source - source or null for nonepublic java.lang.String getType()
null for nonepublic AttachedDisk setType(java.lang.String type)
type - type or null for nonepublic AttachedDisk set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic AttachedDisk clone()
clone in class com.google.api.client.json.GenericJson