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 |
|---|---|
static AttachedDisk.CreateDiskConfiguration.Builder |
builder(ImageId sourceImage)
Returns a builder for a
CreateDiskConfiguration object given the source image that
will be used to create the disk. |
String |
diskName()
Returns the name to be assigned to the disk.
|
Long |
diskSizeGb()
Returns the size of the persistent disk, in GB.
|
DiskTypeId |
diskType()
Returns the identity of the disk type.
|
boolean |
equals(Object obj) |
int |
hashCode() |
static AttachedDisk.CreateDiskConfiguration |
of(ImageId sourceImage)
Returns a
CreateDiskConfiguration object given the source image that will be used to
create the disk. |
ImageId |
sourceImage()
Returns the identity of the source image used to create the disk.
|
AttachedDisk.CreateDiskConfiguration.Builder |
toBuilder()
Returns a builder for the current configuration.
|
autoDelete, boot, interfaceType, toString, typepublic String diskName()
public DiskTypeId diskType()
pd-standard is used.public Long diskSizeGb()
public ImageId sourceImage()
public AttachedDisk.CreateDiskConfiguration.Builder toBuilder()
public static AttachedDisk.CreateDiskConfiguration.Builder builder(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 © 2016 Google. All rights reserved.