Class VolumeForCreate

java.lang.Object
com.woorea.openstack.cinder.model.VolumeForCreate
All Implemented Interfaces:
Serializable

public class VolumeForCreate extends Object implements Serializable
See Also:
  • Field Details

    • size

      private Integer size
    • availabilityZone

      private String availabilityZone
    • name

      private String name
    • description

      private String description
    • snapshotId

      private String snapshotId
    • sourceVolid

      private String sourceVolid
    • imageRef

      private String imageRef
    • volumeType

      private String volumeType
    • bootable

      private Boolean bootable
    • metadata

      private Map<String,String> metadata
  • Constructor Details

    • VolumeForCreate

      public VolumeForCreate()
  • Method Details

    • 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
    • getMetadata

      public Map<String,String> getMetadata()
      Returns:
      the metadata
    • setMetadata

      public void setMetadata(Map<String,String> metadata)
      Parameters:
      metadata - the metadata to set
    • toString

      public String toString()
      Overrides:
      toString in class Object