public static class CinderVolume.ConcreteVolumeBuilder extends Object implements VolumeBuilder
| Modifier and Type | Method and Description |
|---|---|
VolumeBuilder |
bootable(boolean isBootable)
Enables or disables the bootable attribute.
|
Volume |
build()
Creates and return the Model Entity M
|
VolumeBuilder |
description(String description)
See
Volume.getDescription() Optional |
VolumeBuilder |
from(Volume in)
Creates a Builder using the param M as the default values
|
VolumeBuilder |
imageRef(String imageRef)
The ID of the image from which you want to create the volume.
|
VolumeBuilder |
metadata(Map<String,String> metadata)
One or more metadata key and value pairs to associate with the volume.
|
VolumeBuilder |
name(String name)
See
Volume.getName() |
VolumeBuilder |
size(int size)
The size of the volume, in GB.
|
VolumeBuilder |
snapshot(String snapshotId)
To create a volume from an existing snapshot, specify the ID of the existing volume snapshot.
|
VolumeBuilder |
source_volid(String uuid)
To create a volume from an existing volume, specify the ID of the existing volume.
|
VolumeBuilder |
volumeType(String volumeType)
The associated volume type.
|
VolumeBuilder |
zone(String zone)
The associated availability zone.
|
public VolumeBuilder name(String name)
VolumeBuilderVolume.getName()name in interface VolumeBuildername - the name of the volumepublic VolumeBuilder description(String description)
VolumeBuilderVolume.getDescription() Optionaldescription in interface VolumeBuilderdescription - the description of the volumepublic VolumeBuilder source_volid(String uuid)
VolumeBuildersource_volid in interface VolumeBuilderuuid - the id of an existing volumepublic VolumeBuilder snapshot(String snapshotId)
VolumeBuildersnapshot in interface VolumeBuildersnapshotId - the id of an existing volume snapshotpublic VolumeBuilder imageRef(String imageRef)
VolumeBuilderimageRef in interface VolumeBuilderimageRef - the id of an existing imagepublic VolumeBuilder size(int size)
VolumeBuildersize in interface VolumeBuildersize - the size in GBpublic VolumeBuilder volumeType(String volumeType)
VolumeBuildervolumeType in interface VolumeBuildervolumeType - The associated volume type.public VolumeBuilder bootable(boolean isBootable)
VolumeBuilderbootable in interface VolumeBuilderisBootable - true to enable the bootable flagpublic VolumeBuilder metadata(Map<String,String> metadata)
VolumeBuildermetadata in interface VolumeBuildermetadata - metadata to setpublic Volume build()
Buildable.Builderbuild in interface Buildable.Builder<VolumeBuilder,Volume>public VolumeBuilder from(Volume in)
Buildable.Builderfrom in interface Buildable.Builder<VolumeBuilder,Volume>public VolumeBuilder zone(String zone)
VolumeBuilderzone in interface VolumeBuilderzone - The associated availability zone.Copyright © 2017. All rights reserved.