public static class Image.Builder extends ImageInfo.Builder
Image
objects.Modifier and Type | Method and Description |
---|---|
Image |
build()
Creates a
ImageInfo object. |
Image.Builder |
setConfiguration(ImageConfiguration configuration)
Sets the image configuration.
|
Image.Builder |
setDescription(String description)
Sets an optional textual description of the image.
|
Image.Builder |
setImageId(ImageId imageId)
Sets the image identity.
|
public Image.Builder setImageId(ImageId imageId)
ImageInfo.Builder
setImageId
in class ImageInfo.Builder
public Image.Builder setDescription(String description)
ImageInfo.Builder
setDescription
in class ImageInfo.Builder
public Image.Builder setConfiguration(ImageConfiguration configuration)
ImageInfo.Builder
DiskImageConfiguration
to create an image from an
existing disk. Use StorageImageConfiguration
to create an image from a file stored in
Google Cloud Storage.setConfiguration
in class ImageInfo.Builder
public Image build()
ImageInfo.Builder
ImageInfo
object.build
in class ImageInfo.Builder
Copyright © 2019 Google LLC. All rights reserved.