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: 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 |
|---|
AttachedDiskInitializeParams() |
| Modifier and Type | Method and Description |
|---|---|
AttachedDiskInitializeParams |
clone() |
String |
getDescription()
An optional description.
|
String |
getDiskName()
Specifies the disk name.
|
Long |
getDiskSizeGb()
Specifies the size of the disk in base-2 GB.
|
String |
getDiskType()
Specifies the disk type to use to create the instance.
|
Map<String,String> |
getLabels()
Labels to apply to this disk.
|
List<String> |
getResourcePolicies()
Resource policies applied to this disk for automatic snapshot creations.
|
String |
getSourceImage()
The source image to create this disk.
|
CustomerEncryptionKey |
getSourceImageEncryptionKey()
The customer-supplied encryption key of the source image.
|
String |
getSourceSnapshot()
The source snapshot to create this disk.
|
CustomerEncryptionKey |
getSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot.
|
AttachedDiskInitializeParams |
set(String fieldName,
Object value) |
AttachedDiskInitializeParams |
setDescription(String description)
An optional description.
|
AttachedDiskInitializeParams |
setDiskName(String diskName)
Specifies the disk name.
|
AttachedDiskInitializeParams |
setDiskSizeGb(Long diskSizeGb)
Specifies the size of the disk in base-2 GB.
|
AttachedDiskInitializeParams |
setDiskType(String diskType)
Specifies the disk type to use to create the instance.
|
AttachedDiskInitializeParams |
setLabels(Map<String,String> labels)
Labels to apply to this disk.
|
AttachedDiskInitializeParams |
setResourcePolicies(List<String> resourcePolicies)
Resource policies applied to this disk for automatic snapshot creations.
|
AttachedDiskInitializeParams |
setSourceImage(String sourceImage)
The source image to create this disk.
|
AttachedDiskInitializeParams |
setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryptionKey)
The customer-supplied encryption key of the source image.
|
AttachedDiskInitializeParams |
setSourceSnapshot(String sourceSnapshot)
The source snapshot to create this disk.
|
AttachedDiskInitializeParams |
setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotEncryptionKey)
The customer-supplied encryption key of the source snapshot.
|
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 String getDescription()
null for nonepublic AttachedDiskInitializeParams setDescription(String description)
description - description or null for nonepublic 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 getDiskType()
null for nonepublic AttachedDiskInitializeParams setDiskType(String diskType)
diskType - diskType or null for nonepublic Map<String,String> getLabels()
null for nonepublic AttachedDiskInitializeParams setLabels(Map<String,String> labels)
labels - labels or null for nonepublic List<String> getResourcePolicies()
null for nonepublic AttachedDiskInitializeParams setResourcePolicies(List<String> resourcePolicies)
resourcePolicies - resourcePolicies or null for nonepublic String getSourceImage()
null for nonepublic AttachedDiskInitializeParams setSourceImage(String sourceImage)
sourceImage - sourceImage or null for nonepublic CustomerEncryptionKey getSourceImageEncryptionKey()
null for nonepublic AttachedDiskInitializeParams setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryptionKey)
sourceImageEncryptionKey - sourceImageEncryptionKey or null for nonepublic String getSourceSnapshot()
null for nonepublic AttachedDiskInitializeParams setSourceSnapshot(String sourceSnapshot)
sourceSnapshot - sourceSnapshot or null for nonepublic CustomerEncryptionKey getSourceSnapshotEncryptionKey()
null for nonepublic AttachedDiskInitializeParams setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotEncryptionKey)
sourceSnapshotEncryptionKey - sourceSnapshotEncryptionKey or null for nonepublic AttachedDiskInitializeParams set(String fieldName, Object value)
set in class GenericJsonpublic AttachedDiskInitializeParams clone()
clone in class GenericJsonCopyright © 2011–2019 Google. All rights reserved.