Class EbsVolume
- java.lang.Object
-
- com.amazonaws.services.elasticmapreduce.model.EbsVolume
-
- All Implemented Interfaces:
Serializable,Cloneable
public class EbsVolume extends Object implements Serializable, Cloneable
EBS block device that's attached to an EC2 instance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EbsVolume()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EbsVolumeclone()booleanequals(Object obj)StringgetDevice()The device name that is exposed to the instance, such as /dev/sdh.StringgetVolumeId()The volume identifier of the EBS volume.inthashCode()voidsetDevice(String device)The device name that is exposed to the instance, such as /dev/sdh.voidsetVolumeId(String volumeId)The volume identifier of the EBS volume.StringtoString()Returns a string representation of this object; useful for testing and debugging.EbsVolumewithDevice(String device)The device name that is exposed to the instance, such as /dev/sdh.EbsVolumewithVolumeId(String volumeId)The volume identifier of the EBS volume.
-
-
-
Method Detail
-
setDevice
public void setDevice(String device)
The device name that is exposed to the instance, such as /dev/sdh.
- Parameters:
device- The device name that is exposed to the instance, such as /dev/sdh.
-
getDevice
public String getDevice()
The device name that is exposed to the instance, such as /dev/sdh.
- Returns:
- The device name that is exposed to the instance, such as /dev/sdh.
-
withDevice
public EbsVolume withDevice(String device)
The device name that is exposed to the instance, such as /dev/sdh.
- Parameters:
device- The device name that is exposed to the instance, such as /dev/sdh.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVolumeId
public void setVolumeId(String volumeId)
The volume identifier of the EBS volume.
- Parameters:
volumeId- The volume identifier of the EBS volume.
-
getVolumeId
public String getVolumeId()
The volume identifier of the EBS volume.
- Returns:
- The volume identifier of the EBS volume.
-
withVolumeId
public EbsVolume withVolumeId(String volumeId)
The volume identifier of the EBS volume.
- Parameters:
volumeId- The volume identifier of the EBS volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-