package org.dasein.cloud.compute;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

/**
 * @author Eugene Yaroslavtsev
 * @since 18.07.2014
 */
public class SnapshotVolume {

    static public @Nonnull
    SnapshotVolume getSnapshotVolumeInstance(@Nonnull String deviceName, @Nonnull String snapshotId, @Nonnull Integer volumeSize, @Nonnull String volumeType, @Nullable String iops) {
        @SuppressWarnings("deprecation") SnapshotVolume snapshotVolume = new SnapshotVolume();

        snapshotVolume.deviceName = deviceName;
        snapshotVolume.iops = iops;
        snapshotVolume.snapshotId = snapshotId;
        snapshotVolume.volumeSize = volumeSize;
        snapshotVolume.volumeType = volumeType;

        return snapshotVolume;
    }

    public SnapshotVolume() { }

    private String             deviceName;
    private String             snapshotId;
    private Integer            volumeSize;
    private String             volumeType;
    private String             iops;

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getSnapshotId() {
        return snapshotId;
    }

    public void setSnapshotId(String snapshotId) {
        this.snapshotId = snapshotId;
    }

    public Integer getVolumeSize() {
        return volumeSize;
    }

    public void setVolumeSize(Integer volumeSize) {
        this.volumeSize = volumeSize;
    }

    public String getVolumeType() {
        return volumeType;
    }

    public void setVolumeType(String volumeType) {
        this.volumeType = volumeType;
    }

    public String getIops() {
        return iops;
    }

    public void setIops(String iops) {
        this.iops = iops;
    }
}

@@ -204,16 +204,20 @@
 c public
+%0A   
  @Nonnul
@@ -217,20 +217,16 @@
 @Nonnull
-%0A   
  Snapsho
@@ -382,22 +382,23 @@
 ullable 
-String
+Integer
  iops) %7B
@@ -790,17 +790,16 @@
 lume() %7B
- 
 %7D%0A%0A    p
@@ -812,28 +812,16 @@
  String 
-            
 deviceNa
@@ -843,28 +843,16 @@
  String 
-            
 snapshot
@@ -875,27 +875,16 @@
 Integer 
-           
 volumeSi
@@ -906,28 +906,16 @@
  String 
-            
 volumeTy
@@ -934,26 +934,15 @@
 ate 
-String            
+Integer
  iop
@@ -1618,30 +1618,31 @@
 %0A    public 
-String
+Integer
  getIops() %7B
@@ -1694,22 +1694,23 @@
 setIops(
-String
+Integer
  iops) %7B

change iops field type (#1011)