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 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.
-
-
-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-