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()booleanThe device name that is exposed to the instance, such as/dev/sdh.getEbs()AnEBSBlockDevicethat 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.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.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) AnEBSBlockDevicethat 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_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
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
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
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-