Class DiskCreationOptions.Builder
- java.lang.Object
-
- org.jclouds.googlecomputeengine.options.DiskCreationOptions.Builder
-
- Enclosing class:
- DiskCreationOptions
public static class DiskCreationOptions.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiskCreationOptionsbuild()DiskCreationOptions.Builderdescription(String description)The descriptionDiskCreationOptions.BuildersizeGb(Integer sizeGb)Size of the persistent disk, specified in GB.DiskCreationOptions.BuildersourceSnapshot(URI sourceSnapshot)The source snapshotDiskCreationOptions.Buildertype(URI type)The disk type, fully qualified URL for the disk type.
-
-
-
Method Detail
-
type
public DiskCreationOptions.Builder type(URI type)
The disk type, fully qualified URL for the disk type.- Returns:
- the disk type
-
sizeGb
public DiskCreationOptions.Builder sizeGb(Integer sizeGb)
Size of the persistent disk, specified in GB. You can also specify this when creating a persistent disk using the sourceImage or sourceSnapshot parameter.
-
sourceSnapshot
public DiskCreationOptions.Builder sourceSnapshot(URI sourceSnapshot)
The source snapshot- Returns:
- sourceSnapshot, fully qualified URL for the snapshot to be copied.
-
description
public DiskCreationOptions.Builder description(String description)
The description- Returns:
- description, An optional textual description of the resource.
-
build
public DiskCreationOptions build()
-
-