Class BlockDeviceMapping
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.BlockDeviceMapping
-
- All Implemented Interfaces:
Serializable
,Cloneable
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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BlockDeviceMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockDeviceMapping
clone()
boolean
equals(Object obj)
String
getDeviceName()
The device name that is exposed to the instance, such as/dev/sdh
.EbsBlockDevice
getEbs()
AnEBSBlockDevice
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)
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.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)
AnEBSBlockDevice
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.
-
-
-
Method Detail
-
setDeviceName
public void setDeviceName(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 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
public 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 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
public BlockDeviceMapping withDeviceName(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 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
public void setNoDevice(String noDevice)
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
public String 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
public BlockDeviceMapping withNoDevice(String noDevice)
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
public void setVirtualName(String virtualName)
The virtual device name. For more information, see BlockDeviceMapping.
- Parameters:
virtualName
- The virtual device name. For more information, see BlockDeviceMapping.
-
getVirtualName
public String getVirtualName()
The virtual device name. For more information, see BlockDeviceMapping.
- Returns:
- The virtual device name. For more information, see BlockDeviceMapping.
-
withVirtualName
public BlockDeviceMapping withVirtualName(String virtualName)
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
public void setEbs(EbsBlockDevice ebs)
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
public EbsBlockDevice 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
public BlockDeviceMapping withEbs(EbsBlockDevice ebs)
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
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()
-
clone
public BlockDeviceMapping clone()
-
-