public static class CinderVolumeSnapshot.ConcreteVolumeSnapshotBuilder extends Object implements VolumeSnapshotBuilder
| Modifier and Type | Method and Description |
|---|---|
VolumeSnapshot |
build()
Creates and return the Model Entity M
|
VolumeSnapshotBuilder |
description(String description)
Description of the snapshot
|
VolumeSnapshotBuilder |
force(boolean force)
[True/False] Indicate whether to snapshot, even if the volume is attached.
|
VolumeSnapshotBuilder |
from(VolumeSnapshot in)
Creates a Builder using the param M as the default values
|
VolumeSnapshotBuilder |
metadata(Map<String,String> metadata)
One or more metadata key and value pairs to associate with the volume snapshot.
|
VolumeSnapshotBuilder |
name(String name)
Name of the snapshot
|
VolumeSnapshotBuilder |
volume(String volumeId)
The ID of of the existing Volume (REQUIRED)
|
public VolumeSnapshotBuilder name(String name)
VolumeSnapshotBuildername in interface VolumeSnapshotBuildername - the namepublic VolumeSnapshotBuilder description(String description)
VolumeSnapshotBuilderdescription in interface VolumeSnapshotBuilderdescription - the descriptionpublic VolumeSnapshotBuilder volume(String volumeId)
VolumeSnapshotBuildervolume in interface VolumeSnapshotBuildervolumeId - the volume idpublic VolumeSnapshotBuilder force(boolean force)
VolumeSnapshotBuilderforce in interface VolumeSnapshotBuilderforce - true to force an attached volume to be a snapshotpublic VolumeSnapshotBuilder metadata(Map<String,String> metadata)
VolumeSnapshotBuildermetadata in interface VolumeSnapshotBuildermetadata - metadata to setpublic VolumeSnapshot build()
Buildable.Builderbuild in interface Buildable.Builder<VolumeSnapshotBuilder,VolumeSnapshot>public VolumeSnapshotBuilder from(VolumeSnapshot in)
Buildable.Builderfrom in interface Buildable.Builder<VolumeSnapshotBuilder,VolumeSnapshot>Copyright © 2017. All rights reserved.