Class VolumeForCreate
java.lang.Object
com.woorea.openstack.cinder.model.VolumeForCreate
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()getSize()voidsetAvailabilityZone(String availabilityZone) voidsetBootable(Boolean bootable) Enables or disables the bootable attribute.voidsetDescription(String description) voidsetImageRef(String imageRef) voidsetMetadata(Map<String, String> metadata) voidvoidvoidsetSnapshotId(String snapshotId) voidsetSourceVolid(String sourceVolid) voidsetVolumeType(String volumeType) toString()
-
Field Details
-
size
-
availabilityZone
-
name
-
description
-
snapshotId
-
sourceVolid
-
imageRef
-
volumeType
-
bootable
-
metadata
-
-
Constructor Details
-
VolumeForCreate
public VolumeForCreate()
-
-
Method Details
-
getSize
- Returns:
- the size
-
setSize
- Parameters:
size- the size to set
-
getAvailabilityZone
- Returns:
- the availabilityZone
-
setAvailabilityZone
- Parameters:
availabilityZone- the availabilityZone to set
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getDescription
- Returns:
- the description
-
setDescription
- Parameters:
description- the description to set
-
getSnapshotId
- Returns:
- the snapshotId
-
setSnapshotId
- Parameters:
snapshotId- the snapshotId to set
-
getSourceVolid
- Returns:
- the ID of an existing volume (specify in order to create a volume from an existing volume)
-
setSourceVolid
- Parameters:
sourceVolid- to set
-
getImageRef
- Returns:
- the ID of the image from which you want to create the volume (required to create a bootable volume)
-
setImageRef
- Parameters:
imageRef- to set
-
getVolumeType
- Returns:
- the associated volume type
-
setVolumeType
- Parameters:
volumeType- to set
-
getBootable
- Returns:
- the bootable flag to set
-
setBootable
Enables or disables the bootable attribute. You can boot an instance from a bootable volume.- Parameters:
bootable- flag
-
getMetadata
- Returns:
- the metadata
-
setMetadata
- Parameters:
metadata- the metadata to set
-
toString
-