Class VolumeForCreate
- java.lang.Object
-
- com.woorea.openstack.cinder.model.VolumeForCreate
-
- All Implemented Interfaces:
Serializable
public class VolumeForCreate extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VolumeForCreate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAvailabilityZone()BooleangetBootable()StringgetDescription()StringgetImageRef()Map<String,String>getMetadata()StringgetName()IntegergetSize()StringgetSnapshotId()StringgetSourceVolid()StringgetVolumeType()voidsetAvailabilityZone(String availabilityZone)voidsetBootable(Boolean bootable)Enables or disables the bootable attribute.voidsetDescription(String description)voidsetImageRef(String imageRef)voidsetMetadata(Map<String,String> metadata)voidsetName(String name)voidsetSize(Integer size)voidsetSnapshotId(String snapshotId)voidsetSourceVolid(String sourceVolid)voidsetVolumeType(String volumeType)StringtoString()
-
-
-
Method Detail
-
getSize
public Integer getSize()
- Returns:
- the size
-
setSize
public void setSize(Integer size)
- Parameters:
size- the size to set
-
getAvailabilityZone
public String getAvailabilityZone()
- Returns:
- the availabilityZone
-
setAvailabilityZone
public void setAvailabilityZone(String availabilityZone)
- Parameters:
availabilityZone- the availabilityZone to set
-
getName
public String getName()
- Returns:
- the name
-
setName
public void setName(String name)
- Parameters:
name- the name to set
-
getDescription
public String getDescription()
- Returns:
- the description
-
setDescription
public void setDescription(String description)
- Parameters:
description- the description to set
-
getSnapshotId
public String getSnapshotId()
- Returns:
- the snapshotId
-
setSnapshotId
public void setSnapshotId(String snapshotId)
- Parameters:
snapshotId- the snapshotId to set
-
getSourceVolid
public String getSourceVolid()
- Returns:
- the ID of an existing volume (specify in order to create a volume from an existing volume)
-
setSourceVolid
public void setSourceVolid(String sourceVolid)
- Parameters:
sourceVolid- to set
-
getImageRef
public String getImageRef()
- Returns:
- the ID of the image from which you want to create the volume (required to create a bootable volume)
-
setImageRef
public void setImageRef(String imageRef)
- Parameters:
imageRef- to set
-
getVolumeType
public String getVolumeType()
- Returns:
- the associated volume type
-
setVolumeType
public void setVolumeType(String volumeType)
- Parameters:
volumeType- to set
-
getBootable
public Boolean getBootable()
- Returns:
- the bootable flag to set
-
setBootable
public void setBootable(Boolean bootable)
Enables or disables the bootable attribute. You can boot an instance from a bootable volume.- Parameters:
bootable- flag
-
setMetadata
public void setMetadata(Map<String,String> metadata)
- Parameters:
metadata- the metadata to set
-
-