public class EbsVolume extends Object implements Serializable, Cloneable
EBS block device that's attached to an EC2 instance.
| Constructor and Description |
|---|
EbsVolume() |
| Modifier and Type | Method and Description |
|---|---|
EbsVolume |
clone() |
boolean |
equals(Object obj) |
String |
getDevice()
The device name that is exposed to the instance, such as /dev/sdh.
|
String |
getVolumeId()
The volume identifier of the EBS volume.
|
int |
hashCode() |
void |
setDevice(String device)
The device name that is exposed to the instance, such as /dev/sdh.
|
void |
setVolumeId(String volumeId)
The volume identifier of the EBS volume.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EbsVolume |
withDevice(String device)
The device name that is exposed to the instance, such as /dev/sdh.
|
EbsVolume |
withVolumeId(String volumeId)
The volume identifier of the EBS volume.
|
public void setDevice(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 String getDevice()
The device name that is exposed to the instance, such as /dev/sdh.
public EbsVolume withDevice(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(String volumeId)
The volume identifier of the EBS volume.
volumeId - The volume identifier of the EBS volume.public String getVolumeId()
The volume identifier of the EBS volume.
public EbsVolume withVolumeId(String volumeId)
The volume identifier of the EBS volume.
volumeId - The volume identifier of the EBS volume.public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.