public class BlockDeviceMapping
extends java.lang.Object
implements java.io.Serializable
Describes a block device mapping.
| Constructor and Description |
|---|
BlockDeviceMapping() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDeviceName()
The device name exposed to the instance (for example,
/dev/sdh). |
EbsBlockDevice |
getEbs()
Parameters used to automatically set up Amazon EBS volumes when the
instance is launched.
|
java.lang.String |
getNoDevice()
Suppresses the specified device included in the block device mapping
of the AMI.
|
java.lang.String |
getVirtualName()
The virtual device name.
|
int |
hashCode() |
void |
setDeviceName(java.lang.String deviceName)
The device name exposed to the instance (for example,
/dev/sdh). |
void |
setEbs(EbsBlockDevice ebs)
Parameters used to automatically set up Amazon EBS volumes when the
instance is launched.
|
void |
setNoDevice(java.lang.String noDevice)
Suppresses the specified device included in the block device mapping
of the AMI.
|
void |
setVirtualName(java.lang.String virtualName)
The virtual device name.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BlockDeviceMapping |
withDeviceName(java.lang.String deviceName)
The device name exposed to the instance (for example,
/dev/sdh). |
BlockDeviceMapping |
withEbs(EbsBlockDevice ebs)
Parameters used to automatically set up Amazon EBS volumes when the
instance is launched.
|
BlockDeviceMapping |
withNoDevice(java.lang.String noDevice)
Suppresses the specified device included in the block device mapping
of the AMI.
|
BlockDeviceMapping |
withVirtualName(java.lang.String virtualName)
The virtual device name.
|
public java.lang.String getVirtualName()
public void setVirtualName(java.lang.String virtualName)
virtualName - The virtual device name.public BlockDeviceMapping withVirtualName(java.lang.String virtualName)
Returns a reference to this object so that method calls can be chained together.
virtualName - The virtual device name.public java.lang.String getDeviceName()
/dev/sdh)./dev/sdh).public void setDeviceName(java.lang.String deviceName)
/dev/sdh).deviceName - The device name exposed to the instance (for example,
/dev/sdh).public BlockDeviceMapping withDeviceName(java.lang.String deviceName)
/dev/sdh).
Returns a reference to this object so that method calls can be chained together.
deviceName - The device name exposed to the instance (for example,
/dev/sdh).public EbsBlockDevice getEbs()
public void setEbs(EbsBlockDevice ebs)
ebs - Parameters used to automatically set up Amazon EBS volumes when the
instance is launched.public BlockDeviceMapping withEbs(EbsBlockDevice ebs)
Returns a reference to this object so that method calls can be chained together.
ebs - Parameters used to automatically set up Amazon EBS volumes when the
instance is launched.public java.lang.String getNoDevice()
public void setNoDevice(java.lang.String noDevice)
noDevice - Suppresses the specified device included in the block device mapping
of the AMI.public BlockDeviceMapping withNoDevice(java.lang.String noDevice)
Returns a reference to this object so that method calls can be chained together.
noDevice - Suppresses the specified device included in the block device mapping
of the AMI.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object