org.jclouds.openstack.nova.v2_0.domain
Class VolumeAttachment
java.lang.Object
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)
VolumeAttachment
@ConstructorProperties(value={"id","volumeId","serverId","device"})
protected VolumeAttachment(String id,
String volumeId,
@Nullable
String serverId,
@Nullable
String device)
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.