public interface VolumeBuilder extends Buildable.Builder<VolumeBuilder,Volume>
Modifier and Type | Method and Description |
---|---|
VolumeBuilder |
bootable(boolean isBootable)
Enables or disables the bootable attribute.
|
VolumeBuilder |
description(String description)
See
Volume.getDescription() Optional |
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.
|
build, from
VolumeBuilder name(String name)
Volume.getName()
name
- the name of the volumeVolumeBuilder description(String description)
Volume.getDescription()
Optionaldescription
- the description of the volumeVolumeBuilder source_volid(String uuid)
uuid
- the id of an existing volumeVolumeBuilder snapshot(String snapshotId)
snapshotId
- the id of an existing volume snapshotVolumeBuilder imageRef(String imageRef)
imageRef
- the id of an existing imageVolumeBuilder size(int size)
size
- the size in GBVolumeBuilder volumeType(String volumeType)
volumeType
- The associated volume type.VolumeBuilder bootable(boolean isBootable)
isBootable
- true to enable the bootable flagVolumeBuilder metadata(Map<String,String> metadata)
metadata
- metadata to setVolumeBuilder zone(String zone)
zone
- The associated availability zone.Copyright © 2017. All rights reserved.