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 BlockDeviceMappingclone()booleanequals(Object obj)StringgetDeviceName()The device name that is exposed to the instance, such as/dev/sdh.EbsBlockDevicegetEbs()AnEBSBlockDevicethat defines how to configure an Amazon EBS volume when the instance is launched.StringgetNoDevice()Suppresses the specified device included in the AMI's block device mapping.StringgetVirtualName()The virtual device name.inthashCode()voidsetDeviceName(String deviceName)The device name that is exposed to the instance, such as/dev/sdh.voidsetEbs(EbsBlockDevice ebs)AnEBSBlockDevicethat defines how to configure an Amazon EBS volume when the instance is launched.voidsetNoDevice(String noDevice)Suppresses the specified device included in the AMI's block device mapping.voidsetVirtualName(String virtualName)The virtual device name.StringtoString()Returns a string representation of this object; useful for testing and debugging.BlockDeviceMappingwithDeviceName(String deviceName)The device name that is exposed to the instance, such as/dev/sdh.BlockDeviceMappingwithEbs(EbsBlockDevice ebs)AnEBSBlockDevicethat defines how to configure an Amazon EBS volume when the instance is launched.BlockDeviceMappingwithNoDevice(String noDevice)Suppresses the specified device included in the AMI's block device mapping.BlockDeviceMappingwithVirtualName(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_DEVICEand 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_DEVICEand 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_DEVICEand 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_DEVICEand 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_DEVICEand 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_DEVICEand 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
EBSBlockDevicethat defines how to configure an Amazon EBS volume when the instance is launched.- Parameters:
ebs- AnEBSBlockDevicethat defines how to configure an Amazon EBS volume when the instance is launched.
-
getEbs
public EbsBlockDevice getEbs()
An
EBSBlockDevicethat defines how to configure an Amazon EBS volume when the instance is launched.- Returns:
- An
EBSBlockDevicethat defines how to configure an Amazon EBS volume when the instance is launched.
-
withEbs
public BlockDeviceMapping withEbs(EbsBlockDevice ebs)
An
EBSBlockDevicethat defines how to configure an Amazon EBS volume when the instance is launched.- Parameters:
ebs- AnEBSBlockDevicethat 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public BlockDeviceMapping clone()
-
-