Class BlockDeviceMapping
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a block device mapping. This data type maps directly to the Amazon EC2 BlockDeviceMapping data type.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The device name that is exposed to the instance, such as/dev/sdh
.getEbs()
AnEBSBlockDevice
that defines how to configure an Amazon EBS volume when the instance is launched.Suppresses the specified device included in the AMI's block device mapping.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) AnEBSBlockDevice
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.toString()
Returns a string representation of this object; useful for testing and debugging.withDeviceName
(String deviceName) The device name that is exposed to the instance, such as/dev/sdh
.withEbs
(EbsBlockDevice ebs) AnEBSBlockDevice
that defines how to configure an Amazon EBS volume when the instance is launched.withNoDevice
(String noDevice) Suppresses the specified device included in the AMI's block device mapping.withVirtualName
(String virtualName) The virtual device name.
-
Constructor Details
-
BlockDeviceMapping
public BlockDeviceMapping()
-
-
Method Details
-
setDeviceName
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 toROOT_DEVICE
and AWS OpsWorks will provide the correct device name.- Parameters:
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 toROOT_DEVICE
and AWS OpsWorks will provide the correct device name.
-
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 toROOT_DEVICE
and AWS OpsWorks will provide the correct device name.- Returns:
- 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 toROOT_DEVICE
and AWS OpsWorks will provide the correct device name.
-
withDeviceName
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 toROOT_DEVICE
and AWS OpsWorks will provide the correct device name.- Parameters:
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 toROOT_DEVICE
and AWS OpsWorks will provide the correct device name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNoDevice
Suppresses the specified device included in the AMI's block device mapping.
- Parameters:
noDevice
- Suppresses the specified device included in the AMI's block device mapping.
-
getNoDevice
Suppresses the specified device included in the AMI's block device mapping.
- Returns:
- Suppresses the specified device included in the AMI's block device mapping.
-
withNoDevice
Suppresses the specified device included in the AMI's block device mapping.
- Parameters:
noDevice
- Suppresses the specified device included in the AMI's block device mapping.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVirtualName
The virtual device name. For more information, see BlockDeviceMapping.
- Parameters:
virtualName
- The virtual device name. For more information, see BlockDeviceMapping.
-
getVirtualName
The virtual device name. For more information, see BlockDeviceMapping.
- Returns:
- The virtual device name. For more information, see BlockDeviceMapping.
-
withVirtualName
The virtual device name. For more information, see BlockDeviceMapping.
- Parameters:
virtualName
- The virtual device name. For more information, see BlockDeviceMapping.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEbs
An
EBSBlockDevice
that defines how to configure an Amazon EBS volume when the instance is launched.- Parameters:
ebs
- AnEBSBlockDevice
that defines how to configure an Amazon EBS volume when the instance is launched.
-
getEbs
An
EBSBlockDevice
that defines how to configure an Amazon EBS volume when the instance is launched.- Returns:
- An
EBSBlockDevice
that defines how to configure an Amazon EBS volume when the instance is launched.
-
withEbs
An
EBSBlockDevice
that defines how to configure an Amazon EBS volume when the instance is launched.- Parameters:
ebs
- AnEBSBlockDevice
that defines how to configure an Amazon EBS volume when the instance is launched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-