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)
VolumeSnapshotBuilder
name
in interface VolumeSnapshotBuilder
name
- the namepublic VolumeSnapshotBuilder description(String description)
VolumeSnapshotBuilder
description
in interface VolumeSnapshotBuilder
description
- the descriptionpublic VolumeSnapshotBuilder volume(String volumeId)
VolumeSnapshotBuilder
volume
in interface VolumeSnapshotBuilder
volumeId
- the volume idpublic VolumeSnapshotBuilder force(boolean force)
VolumeSnapshotBuilder
force
in interface VolumeSnapshotBuilder
force
- true to force an attached volume to be a snapshotpublic VolumeSnapshotBuilder metadata(Map<String,String> metadata)
VolumeSnapshotBuilder
metadata
in interface VolumeSnapshotBuilder
metadata
- metadata to setpublic VolumeSnapshot build()
Buildable.Builder
build
in interface Buildable.Builder<VolumeSnapshotBuilder,VolumeSnapshot>
public VolumeSnapshotBuilder from(VolumeSnapshot in)
Buildable.Builder
from
in interface Buildable.Builder<VolumeSnapshotBuilder,VolumeSnapshot>
Copyright © 2017. All rights reserved.