public static final class AttachedDisk.CreateDiskConfiguration extends AttachedDisk.AttachedDiskConfiguration
CreateDiskConfiguration
object is never returned by the
service: after the instance is created the corresponding attached disk will be returned with a
AttachedDisk.PersistentDiskConfiguration
.Modifier and Type | Class and Description |
---|---|
static class |
AttachedDisk.CreateDiskConfiguration.Builder
A builder for
CreateDiskConfiguration objects. |
AttachedDisk.AttachedDiskConfiguration.InterfaceType, AttachedDisk.AttachedDiskConfiguration.Type
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDiskName()
Returns the name to be assigned to the disk.
|
Long |
getDiskSizeGb()
Returns the size of the persistent disk, in GB.
|
DiskTypeId |
getDiskType()
Returns the identity of the disk type.
|
ImageId |
getSourceImage()
Returns the identity of the source image used to create the disk.
|
int |
hashCode() |
static AttachedDisk.CreateDiskConfiguration.Builder |
newBuilder(ImageId sourceImage)
Returns a builder for a
CreateDiskConfiguration object given the source image that
will be used to create the disk. |
static AttachedDisk.CreateDiskConfiguration |
of(ImageId sourceImage)
Returns a
CreateDiskConfiguration object given the source image that will be used to
create the disk. |
AttachedDisk.CreateDiskConfiguration.Builder |
toBuilder()
Returns a builder for the current configuration.
|
autoDelete, boot, getInterfaceType, getType, toString
public String getDiskName()
public DiskTypeId getDiskType()
pd-standard
is used.public Long getDiskSizeGb()
public ImageId getSourceImage()
public AttachedDisk.CreateDiskConfiguration.Builder toBuilder()
public static AttachedDisk.CreateDiskConfiguration.Builder newBuilder(ImageId sourceImage)
CreateDiskConfiguration
object given the source image that
will be used to create the disk.public static AttachedDisk.CreateDiskConfiguration of(ImageId sourceImage)
CreateDiskConfiguration
object given the source image that will be used to
create the disk.Copyright © 2019 Google LLC. All rights reserved.