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. 
 | 
Long | 
getDiskSizeGb()
The size of the disk in GB. 
 | 
Boolean | 
getForceAttach()
[Input Only] Whether to force attach the regional disk even if it's currently attached to
 another instance. 
 | 
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 | 
getSavedState()
For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is set to
 PRESERVED if the LocalSSD data has been saved to a persistent location by customer request. 
 | 
InitialStateConfig | 
getShieldedInstanceInitialState()
[Output Only] shielded vm initial state stored on disk 
 | 
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. 
 | 
List<String> | 
getUserLicenses()
[Output Only] A list of user provided licenses. 
 | 
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 | 
setDiskSizeGb(Long diskSizeGb)
The size of the disk in GB. 
 | 
AttachedDisk | 
setForceAttach(Boolean forceAttach)
[Input Only] Whether to force attach the regional disk even if it's currently attached to
 another instance. 
 | 
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 | 
setSavedState(String savedState)
For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is set to
 PRESERVED if the LocalSSD data has been saved to a persistent location by customer request. 
 | 
AttachedDisk | 
setShieldedInstanceInitialState(InitialStateConfig shieldedInstanceInitialState)
[Output Only] shielded vm initial state stored on disk 
 | 
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. 
 | 
AttachedDisk | 
setUserLicenses(List<String> userLicenses)
[Output Only] A list of user provided licenses. 
 | 
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, 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 Long getDiskSizeGb()
null for nonepublic AttachedDisk setDiskSizeGb(Long diskSizeGb)
diskSizeGb - diskSizeGb or null for nonepublic Boolean getForceAttach()
null for nonepublic AttachedDisk setForceAttach(Boolean forceAttach)
forceAttach - forceAttach 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 getSavedState()
null for nonepublic AttachedDisk setSavedState(String savedState)
savedState - savedState or null for nonepublic InitialStateConfig getShieldedInstanceInitialState()
null for nonepublic AttachedDisk setShieldedInstanceInitialState(InitialStateConfig shieldedInstanceInitialState)
shieldedInstanceInitialState - shieldedInstanceInitialState 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 List<String> getUserLicenses()
null for nonepublic AttachedDisk setUserLicenses(List<String> userLicenses)
userLicenses - userLicenses or null for nonepublic AttachedDisk set(String fieldName, Object value)
set in class GenericJsonpublic AttachedDisk clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.