public class ImageDiskConfiguration extends DiskConfiguration
Modifier and Type | Class and Description |
---|---|
static class |
ImageDiskConfiguration.Builder
A builder for
ImageDiskConfiguration objects. |
DiskConfiguration.Type
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
ImageId |
getSourceImage()
Returns the identity of the source image used to create the disk.
|
String |
getSourceImageId()
Returns the service-generated unique id of the image used to create this disk.
|
int |
hashCode() |
static ImageDiskConfiguration.Builder |
newBuilder(ImageId imageId)
Returns a builder for an
ImageDiskConfiguration object given the image identity. |
static ImageDiskConfiguration |
of(ImageId imageId)
Returns an
ImageDiskConfiguration object given the image identity. |
ImageDiskConfiguration.Builder |
toBuilder()
Returns a builder for the object.
|
getDiskType, getSizeGb, getType, toString
public ImageId getSourceImage()
public String getSourceImageId()
public ImageDiskConfiguration.Builder toBuilder()
DiskConfiguration
toBuilder
in class DiskConfiguration
public static ImageDiskConfiguration.Builder newBuilder(ImageId imageId)
ImageDiskConfiguration
object given the image identity.public static ImageDiskConfiguration of(ImageId imageId)
ImageDiskConfiguration
object given the image identity.Copyright © 2019 Google LLC. All rights reserved.