public class EbsVolume
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
EBS block device that's attached to an EC2 instance.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
device
The device name that is exposed to the instance, such as /dev/sdh.
|
private java.lang.String |
volumeId
The volume identifier of the EBS volume.
|
Constructor and Description |
---|
EbsVolume() |
Modifier and Type | Method and Description |
---|---|
EbsVolume |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDevice()
The device name that is exposed to the instance, such as /dev/sdh.
|
java.lang.String |
getVolumeId()
The volume identifier of the EBS volume.
|
int |
hashCode() |
void |
setDevice(java.lang.String device)
The device name that is exposed to the instance, such as /dev/sdh.
|
void |
setVolumeId(java.lang.String volumeId)
The volume identifier of the EBS volume.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EbsVolume |
withDevice(java.lang.String device)
The device name that is exposed to the instance, such as /dev/sdh.
|
EbsVolume |
withVolumeId(java.lang.String volumeId)
The volume identifier of the EBS volume.
|
private java.lang.String device
The device name that is exposed to the instance, such as /dev/sdh.
private java.lang.String volumeId
The volume identifier of the EBS volume.
public void setDevice(java.lang.String device)
The device name that is exposed to the instance, such as /dev/sdh.
device
- The device name that is exposed to the instance, such as /dev/sdh.public java.lang.String getDevice()
The device name that is exposed to the instance, such as /dev/sdh.
public EbsVolume withDevice(java.lang.String device)
The device name that is exposed to the instance, such as /dev/sdh.
device
- The device name that is exposed to the instance, such as /dev/sdh.public void setVolumeId(java.lang.String volumeId)
The volume identifier of the EBS volume.
volumeId
- The volume identifier of the EBS volume.public java.lang.String getVolumeId()
The volume identifier of the EBS volume.
public EbsVolume withVolumeId(java.lang.String volumeId)
The volume identifier of the EBS volume.
volumeId
- The volume identifier of the EBS volume.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public EbsVolume clone()
clone
in class java.lang.Object