Class StorageVolume


public class StorageVolume extends StorageVolumeIdentityProjection
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 Details

  • Constructor Details

    • StorageVolume

      public StorageVolume()
  • Method Details

    • getAccount

      public Account getAccount()
    • getCloud

      public Long getCloud()
    • setDeviceName

      public void setDeviceName(String deviceName)
    • getDeviceName

      public String getDeviceName()
    • setMaxStorage

      public void setMaxStorage(Long maxStorage)
    • getMaxStorage

      public Long getMaxStorage()
    • setUsedStorage

      public void setUsedStorage(Long usedStorage)
    • getUsedStorage

      public Long getUsedStorage()
    • setType

      public void setType(StorageVolumeType type)
    • getType

      public StorageVolumeType getType()
    • getDisplayOrder

      public Integer 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

      public 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 VirtualImageLocation
      Parameters:
      displayOrder - displayOrder
    • getRootVolume

      public Boolean getRootVolume()
      Represents if this StorageVolume is a root volume
      Returns:
      rootVolume
    • setRootVolume

      public void setRootVolume(Boolean rootVolume)
      Represents if this StorageVolume is a root volume
      Parameters:
      rootVolume - rootVolume
    • getInternalId

      public String getInternalId()
      An internal ID for this StorageVolume. Not controlled by Morpheus.
      Returns:
      internalId
    • setInternalId

      public void setInternalId(String internalId)
      An internal ID for this StorageVolume. Not controlled by Morpheus.
      Parameters:
      internalId - internalId
    • getUnitNumber

      public String getUnitNumber()
      The unit number
      Returns:
      unitNumber
    • setUnitNumber

      public void setUnitNumber(String unitNumber)
      The unit number
      Parameters:
      unitNumber - unitNumber
    • getDatastore

      public DatastoreIdentityProjection getDatastore()
      The Datastore associated with this StorageVolume
      Returns:
      datastore
    • setDatastore

      public void setDatastore(DatastoreIdentityProjection datastore)
      The Datastore associated with this StorageVolume
      Parameters:
      datastore - datastore
    • getMaxIOPS

      public Integer getMaxIOPS()
    • setMaxIOPS

      public void setMaxIOPS(Integer maxIOPS)
    • getRemovable

      public Boolean getRemovable()
      Indicates if the disk is able to be removed
      Returns:
      removable
    • setRemovable

      public void setRemovable(Boolean removable)
      Indicates if the disk is able to be removed
      Parameters:
      removable - removable
    • getDiskIndex

      public Integer 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

      public void setDiskIndex(Integer diskIndex)
      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

      public void setUniqueId(String uniqueId)
      A unique identifier. Not controlled by Morpheus.
      Parameters:
      uniqueId -
    • getUniqueId

      public String getUniqueId()
      Get the unique identifier. Not controlled by Morpheus.
      Returns:
      uniqueId
    • getController

      public StorageControllerIdentityProjection getController()
    • setController

      public void setController(StorageControllerIdentityProjection controller)
    • getSnapshots

      public List<SnapshotIdentityProjection> getSnapshots()
    • setSnapshots

      public void setSnapshots(List<SnapshotIdentityProjection> snapshots)
      NOTE: To modify the list of snapshots associated with this StorageVolume, utilize MorpheusSnapshotService
      Parameters:
      snapshots -
    • getDatastoreOption

      public String getDatastoreOption()
    • setDatastoreOption

      public void setDatastoreOption(String datastoreOption)
    • getControllerKey

      public String getControllerKey()
    • setControllerKey

      public void setControllerKey(String controllerKey)
    • getDeviceDisplayName

      public String getDeviceDisplayName()
    • setDeviceDisplayName

      public void setDeviceDisplayName(String deviceDisplayName)
    • getRefType

      public String getRefType()
    • setRefType

      public void setRefType(String refType)
    • getRefId

      public Long getRefId()
    • setRefId

      public void setRefId(Long refId)
    • getRegionCode

      public String getRegionCode()
    • setRegionCode

      public void setRegionCode(String regionCode)
    • getStatus

      public String getStatus()
    • setStatus

      public void setStatus(String status)
    • getUuid

      public String getUuid()
    • setUuid

      public void setUuid(String uuid)
    • getSourceSnapshotId

      public String getSourceSnapshotId()
    • setSourceSnapshotId

      public void setSourceSnapshotId(String sourceSnapshotId)
    • setAccount

      public void setAccount(Account account)
    • getCloudId

      public Long getCloudId()
    • setCloudId

      public void setCloudId(Long cloudId)