public final class AttachedDisk extends 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
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
AttachedDisk() |
| Modifier and Type | Method and Description |
|---|---|
AttachedDisk |
clone() |
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).
|
Boolean |
getBoot()
Indicates that this is a boot disk.
|
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.
|
CustomerEncryptionKey |
getDiskEncryptionKey()
Encrypts or decrypts a disk using a customer-supplied encryption key.
|
List<GuestOsFeature> |
getGuestOsFeatures()
A list of features to enable on the guest operating system.
|
Integer |
getIndex()
[Output Only] 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.
|
String |
getInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.
|
String |
getKind()
[Output Only] Type of the resource.
|
List<String> |
getLicenses()
[Output Only] Any valid publicly visible licenses.
|
String |
getMode()
The mode in which to attach this disk, either READ_WRITE or READ_ONLY.
|
String |
getSource()
Specifies a valid partial or full URL to an existing Persistent Disk resource.
|
String |
getType()
Specifies the type of the disk, either SCRATCH or PERSISTENT.
|
AttachedDisk |
set(String fieldName,
Object value) |
AttachedDisk |
setAutoDelete(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(Boolean boot)
Indicates that this is a boot disk.
|
AttachedDisk |
setDeviceName(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 |
setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey)
Encrypts or decrypts a disk using a customer-supplied encryption key.
|
AttachedDisk |
setGuestOsFeatures(List<GuestOsFeature> guestOsFeatures)
A list of features to enable on the guest operating system.
|
AttachedDisk |
setIndex(Integer index)
[Output Only] 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(String interface__)
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.
|
AttachedDisk |
setKind(String kind)
[Output Only] Type of the resource.
|
AttachedDisk |
setLicenses(List<String> licenses)
[Output Only] Any valid publicly visible licenses.
|
AttachedDisk |
setMode(String mode)
The mode in which to attach this disk, either READ_WRITE or READ_ONLY.
|
AttachedDisk |
setSource(String source)
Specifies a valid partial or full URL to an existing Persistent Disk resource.
|
AttachedDisk |
setType(String type)
Specifies the type of the disk, either SCRATCH or PERSISTENT.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Boolean getAutoDelete()
null for nonepublic AttachedDisk setAutoDelete(Boolean autoDelete)
autoDelete - autoDelete or null for nonepublic Boolean getBoot()
null for nonepublic AttachedDisk setBoot(Boolean boot)
boot - boot or null for nonepublic String getDeviceName()
null for nonepublic AttachedDisk setDeviceName(String deviceName)
deviceName - deviceName or null for nonepublic CustomerEncryptionKey getDiskEncryptionKey()
null for nonepublic AttachedDisk setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey)
diskEncryptionKey - diskEncryptionKey or null for nonepublic List<GuestOsFeature> getGuestOsFeatures()
null for nonepublic AttachedDisk setGuestOsFeatures(List<GuestOsFeature> guestOsFeatures)
guestOsFeatures - guestOsFeatures or null for nonepublic Integer getIndex()
null for nonepublic AttachedDisk setIndex(Integer index)
index - index or null for nonepublic AttachedDiskInitializeParams getInitializeParams()
null for nonepublic AttachedDisk setInitializeParams(AttachedDiskInitializeParams initializeParams)
initializeParams - initializeParams or null for nonepublic String getInterface()
null for nonepublic AttachedDisk setInterface(String interface__)
interface__ - interface__ or null for nonepublic String getKind()
null for nonepublic AttachedDisk setKind(String kind)
kind - kind or null for nonepublic List<String> getLicenses()
null for nonepublic AttachedDisk setLicenses(List<String> licenses)
licenses - licenses or null for nonepublic String getMode()
null for nonepublic AttachedDisk setMode(String mode)
mode - mode or null for nonepublic String getSource()
null for nonepublic AttachedDisk setSource(String source)
source - source or null for nonepublic String getType()
null for nonepublic AttachedDisk setType(String type)
type - type or null for nonepublic AttachedDisk set(String fieldName, Object value)
set in class GenericJsonpublic AttachedDisk clone()
clone in class GenericJsonCopyright © 2011–2019 Google. All rights reserved.