org.jclouds.openstack.nova.v2_0.domain
Class VolumeAttachment

java.lang.Object
  extended by org.jclouds.openstack.nova.v2_0.domain.VolumeAttachment

public class VolumeAttachment
extends Object

An Openstack Nova Volume Attachment (describes how Volumes are attached to Servers)


Nested Class Summary
static class VolumeAttachment.Builder<T extends VolumeAttachment.Builder<T>>
           
 
Constructor Summary
protected VolumeAttachment(String id, String volumeId, String serverId, String device)
           
 
Method Summary
static VolumeAttachment.Builder<?> builder()
           
 boolean equals(Object obj)
           
 String getDevice()
           
 String getId()
           
 String getServerId()
           
 String getVolumeId()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 VolumeAttachment.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VolumeAttachment

@ConstructorProperties(value={"id","volumeId","serverId","device"})
protected VolumeAttachment(String id,
                                                      String volumeId,
                                                      @Nullable
                                                      String serverId,
                                                      @Nullable
                                                      String device)
Method Detail

builder

public static VolumeAttachment.Builder<?> builder()

toBuilder

public VolumeAttachment.Builder<?> toBuilder()

getId

public String getId()
Returns:
the attachment id (typically the same as #getVolumeId())

getVolumeId

public String getVolumeId()
Returns:
the id of the volume attached

getServerId

@Nullable
public String getServerId()
Returns:
the id of the server the volume is attached to

getDevice

@Nullable
public String getDevice()
Returns:
the device name (e.g. "/dev/vdc")

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

string

protected com.google.common.base.Objects.ToStringHelper string()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.