org.jclouds.ec2.domain
Class Attachment

java.lang.Object
  extended by org.jclouds.ec2.domain.Attachment
All Implemented Interfaces:
Comparable<Attachment>

public class Attachment
extends Object
implements Comparable<Attachment>

Author:
Adrian Cole
See Also:

Nested Class Summary
static class Attachment.Builder
           
static class Attachment.Status
           
 
Constructor Summary
Attachment(String region, String volumeId, String instanceId, String device, Attachment.Status status, Date attachTime)
           
 
Method Summary
static Attachment.Builder builder()
           
 int compareTo(Attachment o)
           
 boolean equals(Object obj)
           
 Date getAttachTime()
          Time stamp when the attachment initiated.
 String getDevice()
          The device as it is exposed to the instance.
 String getId()
          The ID of the instance.
 String getRegion()
          Snapshots are tied to Regions and can only be used for volumes within the same Region.
 Attachment.Status getStatus()
          Volume state.
 String getVolumeId()
          The ID of the volume.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attachment

public Attachment(String region,
                  String volumeId,
                  String instanceId,
                  String device,
                  Attachment.Status status,
                  Date attachTime)
Method Detail

builder

public static Attachment.Builder builder()

getRegion

public String getRegion()
Snapshots are tied to Regions and can only be used for volumes within the same Region.


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.


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Attachment o)
Specified by:
compareTo in interface Comparable<Attachment>


Copyright © 2009-2012 jclouds. All Rights Reserved.