public class BlockDeviceMapping
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a block device mapping. This data type maps directly to the Amazon EC2 BlockDeviceMapping data type.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
deviceName
The device name that is exposed to the instance, such as
/dev/sdh . |
private EbsBlockDevice |
ebs
An
EBSBlockDevice that defines how to configure an Amazon
EBS volume when the instance is launched. |
private java.lang.String |
noDevice
Suppresses the specified device included in the AMI's block device
mapping.
|
private java.lang.String |
virtualName
The virtual device name.
|
Constructor and Description |
---|
BlockDeviceMapping() |
Modifier and Type | Method and Description |
---|---|
BlockDeviceMapping |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDeviceName()
The device name that is exposed to the instance, such as
/dev/sdh . |
EbsBlockDevice |
getEbs()
An
EBSBlockDevice that defines how to configure an Amazon
EBS volume when the instance is launched. |
java.lang.String |
getNoDevice()
Suppresses the specified device included in the AMI's block device
mapping.
|
java.lang.String |
getVirtualName()
The virtual device name.
|
int |
hashCode() |
void |
setDeviceName(java.lang.String deviceName)
The device name that is exposed to the instance, such as
/dev/sdh . |
void |
setEbs(EbsBlockDevice ebs)
An
EBSBlockDevice that defines how to configure an Amazon
EBS volume when the instance is launched. |
void |
setNoDevice(java.lang.String noDevice)
Suppresses the specified device included in the AMI's block device
mapping.
|
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 that is exposed to the instance, such as
/dev/sdh . |
BlockDeviceMapping |
withEbs(EbsBlockDevice ebs)
An
EBSBlockDevice that defines how to configure an Amazon
EBS volume when the instance is launched. |
BlockDeviceMapping |
withNoDevice(java.lang.String noDevice)
Suppresses the specified device included in the AMI's block device
mapping.
|
BlockDeviceMapping |
withVirtualName(java.lang.String virtualName)
The virtual device name.
|
private java.lang.String deviceName
The device name that is exposed to the instance, such as
/dev/sdh
. For the root device, you can use the explicit
device name or you can set this parameter to ROOT_DEVICE
and
AWS OpsWorks will provide the correct device name.
private java.lang.String noDevice
Suppresses the specified device included in the AMI's block device mapping.
private java.lang.String virtualName
The virtual device name. For more information, see BlockDeviceMapping.
private EbsBlockDevice ebs
An EBSBlockDevice
that defines how to configure an Amazon
EBS volume when the instance is launched.
public void setDeviceName(java.lang.String deviceName)
The device name that is exposed to the instance, such as
/dev/sdh
. For the root device, you can use the explicit
device name or you can set this parameter to ROOT_DEVICE
and
AWS OpsWorks will provide the correct device name.
deviceName
- The device name that is exposed to the instance, such as
/dev/sdh
. For the root device, you can use the
explicit device name or you can set this parameter to
ROOT_DEVICE
and AWS OpsWorks will provide the correct
device name.public java.lang.String getDeviceName()
The device name that is exposed to the instance, such as
/dev/sdh
. For the root device, you can use the explicit
device name or you can set this parameter to ROOT_DEVICE
and
AWS OpsWorks will provide the correct device name.
/dev/sdh
. For the root device, you can use the
explicit device name or you can set this parameter to
ROOT_DEVICE
and AWS OpsWorks will provide the
correct device name.public BlockDeviceMapping withDeviceName(java.lang.String deviceName)
The device name that is exposed to the instance, such as
/dev/sdh
. For the root device, you can use the explicit
device name or you can set this parameter to ROOT_DEVICE
and
AWS OpsWorks will provide the correct device name.
deviceName
- The device name that is exposed to the instance, such as
/dev/sdh
. For the root device, you can use the
explicit device name or you can set this parameter to
ROOT_DEVICE
and AWS OpsWorks will provide the correct
device name.public void setNoDevice(java.lang.String noDevice)
Suppresses the specified device included in the AMI's block device mapping.
noDevice
- Suppresses the specified device included in the AMI's block device
mapping.public java.lang.String getNoDevice()
Suppresses the specified device included in the AMI's block device mapping.
public BlockDeviceMapping withNoDevice(java.lang.String noDevice)
Suppresses the specified device included in the AMI's block device mapping.
noDevice
- Suppresses the specified device included in the AMI's block device
mapping.public void setVirtualName(java.lang.String virtualName)
The virtual device name. For more information, see BlockDeviceMapping.
virtualName
- The virtual device name. For more information, see BlockDeviceMapping.public java.lang.String getVirtualName()
The virtual device name. For more information, see BlockDeviceMapping.
public BlockDeviceMapping withVirtualName(java.lang.String virtualName)
The virtual device name. For more information, see BlockDeviceMapping.
virtualName
- The virtual device name. For more information, see BlockDeviceMapping.public void setEbs(EbsBlockDevice ebs)
An EBSBlockDevice
that defines how to configure an Amazon
EBS volume when the instance is launched.
ebs
- An EBSBlockDevice
that defines how to configure an
Amazon EBS volume when the instance is launched.public EbsBlockDevice getEbs()
An EBSBlockDevice
that defines how to configure an Amazon
EBS volume when the instance is launched.
EBSBlockDevice
that defines how to configure an
Amazon EBS volume when the instance is launched.public BlockDeviceMapping withEbs(EbsBlockDevice ebs)
An EBSBlockDevice
that defines how to configure an Amazon
EBS volume when the instance is launched.
ebs
- An EBSBlockDevice
that defines how to configure an
Amazon EBS volume when the instance is launched.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 BlockDeviceMapping clone()
clone
in class java.lang.Object