From a607d3573ff7f4a9f43a45063066243b892737ed Mon Sep 17 00:00:00 2001 From: Alex Yarmula Date: Sat, 20 Feb 2010 12:43:32 -0800 Subject: [PATCH] Removed the class that's no longer used --- .../aws/ec2/domain/BlockDeviceMapping.java | 100 ------------------ 1 file changed, 100 deletions(-) diff --git a/aws/core/src/main/java/org/jclouds/aws/ec2/domain/BlockDeviceMapping.java b/aws/core/src/main/java/org/jclouds/aws/ec2/domain/BlockDeviceMapping.java index e438c8b0bb..379587a652 100644 --- a/aws/core/src/main/java/org/jclouds/aws/ec2/domain/BlockDeviceMapping.java +++ b/aws/core/src/main/java/org/jclouds/aws/ec2/domain/BlockDeviceMapping.java @@ -49,104 +49,4 @@ public class BlockDeviceMapping { public List getEbsBlockDevices() { return ImmutableList.copyOf(ebsBlockDevices); } - - public static class EbsBlockDevice2 { - private final String volumeId; - private final String deviceName; - private final Boolean deleteOnTermination; - private final Attachment.Status attachmentStatus; - private final Date attachTime; - - /** - * - * @param volumeId - * required parameter (can not be null) - * @param deviceName - * name of the device (ie "/dev/sda1") - * @param deleteOnTermination - * whether the volume will be deleted on instance termination - */ - public EbsBlockDevice2(String volumeId, @Nullable String deviceName, - @Nullable Boolean deleteOnTermination) { - this(volumeId, deviceName, null, null, deleteOnTermination); - } - - - /** - * - * @param volumeId - * required parameter (can not be null) - * @param deviceName - * name of the device (ie "/dev/sda1") - * @param attachmentStatus - * whether the device is attached, detached - * @param attachTime - * when the device was attached - * @param deleteOnTermination - * whether the volume will be deleted on instance termination - */ - public EbsBlockDevice2(String volumeId, @Nullable String deviceName, - @Nullable Attachment.Status attachmentStatus, - @Nullable Date attachTime, @Nullable Boolean deleteOnTermination) { - this.volumeId = checkNotNull(volumeId, /*or throw*/ "VolumeId is required"); - this.deviceName = deviceName; - this.deleteOnTermination = deleteOnTermination; - this.attachmentStatus = attachmentStatus; - this.attachTime = attachTime; - } - - /** - * Returns the volume id - * @return volume id. This value is never null - */ - public String getVolumeId() { - return volumeId; - } - - public String getDeviceName() { - return deviceName; - } - - public Boolean isDeleteOnTermination() { - return deleteOnTermination; - } - - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((volumeId == null) ? 0 : volumeId.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - EbsBlockDevice2 other = (EbsBlockDevice2) obj; - if (volumeId == null) { - if (other.volumeId != null) - return false; - } else if (!volumeId.equals(other.volumeId)) - return false; - if (attachTime == null) { - if (other.attachTime != null) - return false; - } else if (!attachTime.equals(other.attachTime)) - return false; - if (attachmentStatus == null) { - if (other.attachmentStatus != null) - return false; - } else if (!attachmentStatus.equals(other.attachmentStatus)) - return false; - return deleteOnTermination == other.deleteOnTermination; - - } - } - }