Class VolumeForCreate

  • All Implemented Interfaces:
    java.io.Serializable

    public class VolumeForCreate
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Field Detail

      • size

        private java.lang.Integer size
      • availabilityZone

        private java.lang.String availabilityZone
      • name

        private java.lang.String name
      • description

        private java.lang.String description
      • snapshotId

        private java.lang.String snapshotId
      • sourceVolid

        private java.lang.String sourceVolid
      • imageRef

        private java.lang.String imageRef
      • volumeType

        private java.lang.String volumeType
      • bootable

        private java.lang.Boolean bootable
      • metadata

        private java.util.Map<java.lang.String,​java.lang.String> metadata
    • Constructor Detail

      • VolumeForCreate

        public VolumeForCreate()
    • Method Detail

      • getSize

        public java.lang.Integer getSize()
        Returns:
        the size
      • setSize

        public void setSize​(java.lang.Integer size)
        Parameters:
        size - the size to set
      • getAvailabilityZone

        public java.lang.String getAvailabilityZone()
        Returns:
        the availabilityZone
      • setAvailabilityZone

        public void setAvailabilityZone​(java.lang.String availabilityZone)
        Parameters:
        availabilityZone - the availabilityZone to set
      • getName

        public java.lang.String getName()
        Returns:
        the name
      • setName

        public void setName​(java.lang.String name)
        Parameters:
        name - the name to set
      • getDescription

        public java.lang.String getDescription()
        Returns:
        the description
      • setDescription

        public void setDescription​(java.lang.String description)
        Parameters:
        description - the description to set
      • getSnapshotId

        public java.lang.String getSnapshotId()
        Returns:
        the snapshotId
      • setSnapshotId

        public void setSnapshotId​(java.lang.String snapshotId)
        Parameters:
        snapshotId - the snapshotId to set
      • getSourceVolid

        public java.lang.String getSourceVolid()
        Returns:
        the ID of an existing volume (specify in order to create a volume from an existing volume)
      • setSourceVolid

        public void setSourceVolid​(java.lang.String sourceVolid)
        Parameters:
        sourceVolid - to set
      • getImageRef

        public java.lang.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​(java.lang.String imageRef)
        Parameters:
        imageRef - to set
      • getVolumeType

        public java.lang.String getVolumeType()
        Returns:
        the associated volume type
      • setVolumeType

        public void setVolumeType​(java.lang.String volumeType)
        Parameters:
        volumeType - to set
      • getBootable

        public java.lang.Boolean getBootable()
        Returns:
        the bootable flag to set
      • setBootable

        public void setBootable​(java.lang.Boolean bootable)
        Enables or disables the bootable attribute. You can boot an instance from a bootable volume.
        Parameters:
        bootable - flag
      • getMetadata

        public java.util.Map<java.lang.String,​java.lang.String> getMetadata()
        Returns:
        the metadata
      • setMetadata

        public void setMetadata​(java.util.Map<java.lang.String,​java.lang.String> metadata)
        Parameters:
        metadata - the metadata to set
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object