public class BlockDeviceMapping extends Object implements Serializable, Cloneable
Describes a block device mapping. This data type maps directly to the Amazon EC2 BlockDeviceMapping data type.
Constructor and Description |
---|
BlockDeviceMapping() |
Modifier and Type | Method and Description |
---|---|
BlockDeviceMapping |
clone() |
boolean |
equals(Object obj) |
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. |
String |
getNoDevice()
Suppresses the specified device included in the AMI's block device
mapping.
|
String |
getVirtualName()
The virtual device name.
|
int |
hashCode() |
void |
setDeviceName(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(String noDevice)
Suppresses the specified device included in the AMI's block device
mapping.
|
void |
setVirtualName(String virtualName)
The virtual device name.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BlockDeviceMapping |
withDeviceName(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(String noDevice)
Suppresses the specified device included in the AMI's block device
mapping.
|
BlockDeviceMapping |
withVirtualName(String virtualName)
The virtual device name.
|
public String getDeviceName()
/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 void setDeviceName(String deviceName)
/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 BlockDeviceMapping withDeviceName(String deviceName)
/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.
Returns a reference to this object so that method calls can be chained together.
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 String getNoDevice()
public void setNoDevice(String noDevice)
noDevice
- Suppresses the specified device included in the AMI's block device
mapping.public BlockDeviceMapping withNoDevice(String noDevice)
Returns a reference to this object so that method calls can be chained together.
noDevice
- Suppresses the specified device included in the AMI's block device
mapping.public String getVirtualName()
public void setVirtualName(String virtualName)
virtualName
- The virtual device name. For more information, see BlockDeviceMapping.public BlockDeviceMapping withVirtualName(String virtualName)
Returns a reference to this object so that method calls can be chained together.
virtualName
- The virtual device name. For more information, see BlockDeviceMapping.public EbsBlockDevice getEbs()
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 void setEbs(EbsBlockDevice ebs)
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 BlockDeviceMapping withEbs(EbsBlockDevice ebs)
EBSBlockDevice
that defines how to configure an Amazon
EBS volume when the instance is launched.
Returns a reference to this object so that method calls can be chained together.
ebs
- An EBSBlockDevice
that defines how to configure an Amazon
EBS volume when the instance is launched.public String toString()
toString
in class Object
Object.toString()
public BlockDeviceMapping clone()
Copyright © 2015. All rights reserved.