Class CinderVolume
- java.lang.Object
-
- org.openstack4j.openstack.storage.block.domain.CinderVolume
-
- All Implemented Interfaces:
Serializable,Buildable<VolumeBuilder>,ModelEntity,Volume
public class CinderVolume extends Object implements Volume
An OpenStack Volume- Author:
- Jeremy Unruh
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCinderVolume.ConcreteVolumeBuilderstatic classCinderVolume.Volumes-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
Nested classes/interfaces inherited from interface org.openstack4j.model.storage.block.Volume
Volume.MigrationStatus, Volume.Status
-
-
Constructor Summary
Constructors Constructor Description CinderVolume()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbootable()static VolumeBuilderbuilder()booleanencrypted()List<? extends VolumeAttachment>getAttachments()DategetCreated()StringgetDescription()StringgetDisplayDescription()StringgetDisplayName()StringgetId()StringgetImageRef()Map<String,String>getMetaData()Volume.MigrationStatusgetMigrateStatus()StringgetName()intgetSize()StringgetSnapshotId()StringgetSourceVolid()Volume.StatusgetStatus()StringgetTenantId()StringgetVolumeType()StringgetZone()Stringhost()Booleanmultiattach()VolumeBuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
builder
public static VolumeBuilder builder()
- Returns:
- the Volume Builder
-
toBuilder
public VolumeBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<VolumeBuilder>
-
getId
public String getId()
-
getName
public String getName()
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceVolume- Returns:
- the display name of the volume
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceVolume- Returns:
- the description of the volume
-
getDisplayDescription
public String getDisplayDescription()
- Specified by:
getDisplayDescriptionin interfaceVolume- Returns:
- the display description of the volume
-
getStatus
public Volume.Status getStatus()
-
getSize
public int getSize()
-
getZone
public String getZone()
-
getCreated
public Date getCreated()
- Specified by:
getCreatedin interfaceVolume- Returns:
- the created date of the volume
-
getVolumeType
public String getVolumeType()
- Specified by:
getVolumeTypein interfaceVolume- Returns:
- the type of volume
-
getSnapshotId
public String getSnapshotId()
- Specified by:
getSnapshotIdin interfaceVolume- Returns:
- the snapshot identifier
-
getMigrateStatus
public Volume.MigrationStatus getMigrateStatus()
- Specified by:
getMigrateStatusin interfaceVolume- Returns:
- the status of volume migrate status, default null
-
getImageRef
public String getImageRef()
- Specified by:
getImageRefin interfaceVolume- Returns:
- the image reference identifier (if an image was associated) otherwise null
-
multiattach
public Boolean multiattach()
- Specified by:
multiattachin interfaceVolume- Returns:
- To enable this volume to attach
-
getSourceVolid
public String getSourceVolid()
- Specified by:
getSourceVolidin interfaceVolume- Returns:
- ID of source volume to clone from
-
getMetaData
public Map<String,String> getMetaData()
- Specified by:
getMetaDatain interfaceVolume- Returns:
- extended meta data information. key value pair of String key, String value
-
getAttachments
public List<? extends VolumeAttachment> getAttachments()
- Specified by:
getAttachmentsin interfaceVolume- Returns:
- volume attachment data information.
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceVolume- Returns:
- the tenant id
-
bootable
public boolean bootable()
-
encrypted
public boolean encrypted()
-
host
public String host()
-
-