public final class AttachedDiskInitializeParams 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: http://code.google.com/p/google-api-java-client/wiki/Json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
AttachedDiskInitializeParams() |
Modifier and Type | Method and Description |
---|---|
AttachedDiskInitializeParams |
clone() |
String |
getDiskName()
Name of the disk (when not provided defaults to the name of the instance).
|
Long |
getDiskSizeGb()
Size of the disk in base-2 GB.
|
String |
getSourceImage()
The source image used to create this disk.
|
AttachedDiskInitializeParams |
set(String fieldName,
Object value) |
AttachedDiskInitializeParams |
setDiskName(String diskName)
Name of the disk (when not provided defaults to the name of the instance).
|
AttachedDiskInitializeParams |
setDiskSizeGb(Long diskSizeGb)
Size of the disk in base-2 GB.
|
AttachedDiskInitializeParams |
setSourceImage(String sourceImage)
The source image used to create this disk.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public String getDiskName()
null
for nonepublic AttachedDiskInitializeParams setDiskName(String diskName)
diskName
- diskName or null
for nonepublic Long getDiskSizeGb()
null
for nonepublic AttachedDiskInitializeParams setDiskSizeGb(Long diskSizeGb)
diskSizeGb
- diskSizeGb or null
for nonepublic String getSourceImage()
null
for nonepublic AttachedDiskInitializeParams setSourceImage(String sourceImage)
sourceImage
- sourceImage or null
for nonepublic AttachedDiskInitializeParams set(String fieldName, Object value)
set
in class GenericJson
public AttachedDiskInitializeParams clone()
clone
in class GenericJson