public class StandardDiskConfiguration extends DiskConfiguration
Modifier and Type | Class and Description |
---|---|
static class |
StandardDiskConfiguration.Builder
A builder for
StandardDiskConfiguration objects. |
DiskConfiguration.Type
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
static StandardDiskConfiguration.Builder |
newBuilder()
Returns a builder for a
StandardDiskConfiguration object. |
static StandardDiskConfiguration |
of(DiskTypeId diskType)
Returns a
StandardDiskConfiguration object given the disk type. |
static StandardDiskConfiguration |
of(DiskTypeId diskType,
long sizeGb)
Returns a
StandardDiskConfiguration object given the disk type and size in GB. |
static StandardDiskConfiguration |
of(long sizeGb)
Returns a
StandardDiskConfiguration object given the disk size in GB. |
StandardDiskConfiguration.Builder |
toBuilder()
Returns a builder for the object.
|
getDiskType, getSizeGb, getType, toString
public StandardDiskConfiguration.Builder toBuilder()
DiskConfiguration
toBuilder
in class DiskConfiguration
public static StandardDiskConfiguration.Builder newBuilder()
StandardDiskConfiguration
object.public static StandardDiskConfiguration of(DiskTypeId diskType)
StandardDiskConfiguration
object given the disk type.public static StandardDiskConfiguration of(long sizeGb)
StandardDiskConfiguration
object given the disk size in GB.public static StandardDiskConfiguration of(DiskTypeId diskType, long sizeGb)
StandardDiskConfiguration
object given the disk type and size in GB.Copyright © 2019 Google LLC. All rights reserved.