Package com.morpheusdata.model
Class StorageVolume
java.lang.Object
com.morpheusdata.model.MorpheusModel
com.morpheusdata.model.projection.MorpheusIdentityModel
com.morpheusdata.model.projection.StorageVolumeIdentityProjection
com.morpheusdata.model.StorageVolume
Representation of a Morpheus StorageVolume database object within the Morpheus platform. Not all data is provided
in this implementation that is available in the morpheus core platform for security purposes and internal use.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Account
protected Long
protected StorageControllerIdentityProjection
protected String
protected DatastoreIdentityProjection
protected String
protected String
protected String
protected Integer
protected Integer
protected String
protected Integer
protected Long
protected Long
protected String
protected String
protected Boolean
protected Boolean
protected List<SnapshotIdentityProjection>
protected String
protected String
protected StorageVolumeType
protected String
protected String
protected Long
protected String
Fields inherited from class com.morpheusdata.model.projection.StorageVolumeIdentityProjection
externalId, name, storageVolumeTypeCode
Fields inherited from class com.morpheusdata.model.MorpheusModel
config, id
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCloud()
The Datastore associated with this StorageVolumeUtilized during creation to set logical defaults for deviceName and deviceDisplayName if they are null.The display order of the disk in the user interface when displayed with other related disks for a ComputeServer, VirtualImage, or VirtualImageLocationAn internal ID for this StorageVolume.getRefId()
Indicates if the disk is able to be removedRepresents if this StorageVolume is a root volumegetType()
Get the unique identifier.The unit numbergetUuid()
void
setAccount
(Account account) void
setCloudId
(Long cloudId) void
setController
(StorageControllerIdentityProjection controller) void
setControllerKey
(String controllerKey) void
setDatastore
(DatastoreIdentityProjection datastore) The Datastore associated with this StorageVolumevoid
setDatastoreOption
(String datastoreOption) void
setDeviceDisplayName
(String deviceDisplayName) void
setDeviceName
(String deviceName) void
setDiskIndex
(Integer diskIndex) Utilized during creation to set logical defaults for deviceName and deviceDisplayName if they are null.void
setDisplayOrder
(Integer displayOrder) The display order of the disk in the user interface when displayed with other related disks for a ComputeServer, VirtualImage, or VirtualImageLocationvoid
setInternalId
(String internalId) An internal ID for this StorageVolume.void
setMaxIOPS
(Integer maxIOPS) void
setMaxStorage
(Long maxStorage) void
void
setRefType
(String refType) void
setRegionCode
(String regionCode) void
setRemovable
(Boolean removable) Indicates if the disk is able to be removedvoid
setRootVolume
(Boolean rootVolume) Represents if this StorageVolume is a root volumevoid
setSnapshots
(List<SnapshotIdentityProjection> snapshots) NOTE: To modify the list of snapshots associated with this StorageVolume, utilize MorpheusSnapshotServicevoid
setSourceSnapshotId
(String sourceSnapshotId) void
void
setType
(StorageVolumeType type) void
setUniqueId
(String uniqueId) A unique identifier.void
setUnitNumber
(String unitNumber) The unit numbervoid
setUsedStorage
(Long usedStorage) void
Methods inherited from class com.morpheusdata.model.projection.StorageVolumeIdentityProjection
getExternalId, getName, getStorageVolumeTypeCode, setExternalId, setName, setStorageVolumeTypeCode
Methods inherited from class com.morpheusdata.model.projection.MorpheusIdentityModel
getIdentityProperties
Methods inherited from class com.morpheusdata.model.MorpheusModel
getConfig, getConfigMap, getConfigProperty, getDirtyProperties, getDirtyPropertyValues, getId, getProperties, isDirty, markClean, markDirty, markDirty, setConfig, setConfigMap, setConfigProperty, setId
-
Field Details
-
account
-
cloudId
-
deviceName
-
deviceDisplayName
-
maxStorage
-
usedStorage
-
type
-
displayOrder
-
rootVolume
-
internalId
-
unitNumber
-
datastore
-
maxIOPS
-
removable
-
diskIndex
-
uniqueId
-
datastoreOption
-
controller
-
controllerKey
-
snapshots
-
refType
-
refId
-
regionCode
-
status
-
uuid
-
sourceSnapshotId
-
-
Constructor Details
-
StorageVolume
public StorageVolume()
-
-
Method Details
-
getAccount
-
getCloud
-
setDeviceName
-
getDeviceName
-
setMaxStorage
-
getMaxStorage
-
setUsedStorage
-
getUsedStorage
-
setType
-
getType
-
getDisplayOrder
The display order of the disk in the user interface when displayed with other related disks for a ComputeServer, VirtualImage, or VirtualImageLocation- Returns:
- displayOrder
-
setDisplayOrder
The display order of the disk in the user interface when displayed with other related disks for a ComputeServer, VirtualImage, or VirtualImageLocation- Parameters:
displayOrder
- displayOrder
-
getRootVolume
Represents if this StorageVolume is a root volume- Returns:
- rootVolume
-
setRootVolume
Represents if this StorageVolume is a root volume- Parameters:
rootVolume
- rootVolume
-
getInternalId
An internal ID for this StorageVolume. Not controlled by Morpheus.- Returns:
- internalId
-
setInternalId
An internal ID for this StorageVolume. Not controlled by Morpheus.- Parameters:
internalId
- internalId
-
getUnitNumber
The unit number- Returns:
- unitNumber
-
setUnitNumber
The unit number- Parameters:
unitNumber
- unitNumber
-
getDatastore
The Datastore associated with this StorageVolume- Returns:
- datastore
-
setDatastore
The Datastore associated with this StorageVolume- Parameters:
datastore
- datastore
-
getMaxIOPS
-
setMaxIOPS
-
getRemovable
Indicates if the disk is able to be removed- Returns:
- removable
-
setRemovable
Indicates if the disk is able to be removed- Parameters:
removable
- removable
-
getDiskIndex
Utilized during creation to set logical defaults for deviceName and deviceDisplayName if they are null. Not stored in Morpheus or returned For example: 0 may result in a diskName of sda- Returns:
- diskIndex diskIndex
-
setDiskIndex
Utilized during creation to set logical defaults for deviceName and deviceDisplayName if they are null. Not stored in Morpheus or returned For example: 0 may result in a diskName of sda- Parameters:
diskIndex
- diskIndex
-
setUniqueId
A unique identifier. Not controlled by Morpheus.- Parameters:
uniqueId
-
-
getUniqueId
Get the unique identifier. Not controlled by Morpheus.- Returns:
- uniqueId
-
getController
-
setController
-
getSnapshots
-
setSnapshots
NOTE: To modify the list of snapshots associated with this StorageVolume, utilize MorpheusSnapshotService- Parameters:
snapshots
-
-
getDatastoreOption
-
setDatastoreOption
-
getControllerKey
-
setControllerKey
-
getDeviceDisplayName
-
setDeviceDisplayName
-
getRefType
-
setRefType
-
getRefId
-
setRefId
-
getRegionCode
-
setRegionCode
-
getStatus
-
setStatus
-
getUuid
-
setUuid
-
getSourceSnapshotId
-
setSourceSnapshotId
-
setAccount
-
getCloudId
-
setCloudId
-