public abstract class DiskConfiguration extends Object implements Serializable
StandardDiskConfiguration
to create a standard
disk given a disk type and size. Use ImageDiskConfiguration
to create a disk from a
Compute Engine disk image. Use SnapshotDiskConfiguration
to create a disk from a Compute
Engine disk snapshot.Modifier and Type | Class and Description |
---|---|
static class |
DiskConfiguration.Builder<T extends DiskConfiguration,B extends DiskConfiguration.Builder<T,B>>
Base builder for disk configurations.
|
static class |
DiskConfiguration.Type
Type of a Google Compute Engine disk configuration.
|
Modifier and Type | Method and Description |
---|---|
DiskTypeId |
getDiskType()
Returns the identity of the disk type.
|
Long |
getSizeGb()
Returns the size of the persistent disk, in GB.
|
DiskConfiguration.Type |
getType()
Returns the disk configuration's type.
|
abstract DiskConfiguration.Builder |
toBuilder()
Returns a builder for the object.
|
String |
toString() |
public DiskConfiguration.Type getType()
DiskConfiguration.Type.STANDARD
for a standard
configuration that creates a disk given its type and size. This method returns DiskConfiguration.Type.SNAPSHOT
for a configuration that creates a disk from a Google Compute Engine snapshot.
This method returns DiskConfiguration.Type.IMAGE
for a configuration that creates a disk from a Google
Compute Engine image.public Long getSizeGb()
public DiskTypeId getDiskType()
public abstract DiskConfiguration.Builder toBuilder()
Copyright © 2019 Google LLC. All rights reserved.