Package org.jclouds.ec2.domain
Class Attachment
- java.lang.Object
-
- org.jclouds.ec2.domain.Attachment
-
- All Implemented Interfaces:
Comparable<Attachment>
public class Attachment extends Object implements Comparable<Attachment>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAttachment.Builderstatic classAttachment.Status
-
Constructor Summary
Constructors Constructor Description Attachment(String region, String volumeId, String instanceId, String device, Attachment.Status status, Date attachTime)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Attachment.Builderbuilder()intcompareTo(Attachment o)booleanequals(Object obj)DategetAttachTime()Time stamp when the attachment initiated.StringgetDevice()The device as it is exposed to the instance.StringgetId()The ID of the instance.StringgetRegion()Deprecated.Attachment.StatusgetStatus()Volume state.StringgetVolumeId()The ID of the volume.inthashCode()StringtoString()
-
-
-
Method Detail
-
builder
public static Attachment.Builder builder()
-
getRegion
@Deprecated public String getRegion()
Deprecated.To be removed in jclouds 1.6Warning
Especially on EC2 clones that may not support regions, this value is fragile. Consider alternate means to determine context.
-
getVolumeId
public String getVolumeId()
The ID of the volume.
-
getId
public String getId()
The ID of the instance.
-
getDevice
public String getDevice()
The device as it is exposed to the instance.
-
getStatus
public Attachment.Status getStatus()
Volume state.
-
getAttachTime
public Date getAttachTime()
Time stamp when the attachment initiated.
-
compareTo
public int compareTo(Attachment o)
- Specified by:
compareToin interfaceComparable<Attachment>
-
-