@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BlockDeviceMapping extends Object implements Serializable, Cloneable, StructuredPojo
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 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 to ROOT_DEVICE
and AWS OpsWorks Stacks 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 Stacks will provide the correct device name.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 to ROOT_DEVICE
and AWS OpsWorks Stacks 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 Stacks will provide the correct device name.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 to ROOT_DEVICE
and AWS OpsWorks Stacks 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 Stacks will provide the correct device name.public void setNoDevice(String noDevice)
Suppresses the specified device included in the AMI's block device mapping.
noDevice
- Suppresses the specified device included in the AMI's block device mapping.public String getNoDevice()
Suppresses the specified device included in the AMI's block device mapping.
public BlockDeviceMapping withNoDevice(String noDevice)
Suppresses the specified device included in the AMI's block device mapping.
noDevice
- Suppresses the specified device included in the AMI's block device mapping.public void setVirtualName(String virtualName)
The virtual device name. For more information, see BlockDeviceMapping.
virtualName
- The virtual device name. For more information, see BlockDeviceMapping.public String getVirtualName()
The virtual device name. For more information, see BlockDeviceMapping.
public BlockDeviceMapping withVirtualName(String virtualName)
The virtual device name. For more information, see BlockDeviceMapping.
virtualName
- The virtual device name. For more information, see BlockDeviceMapping.public void setEbs(EbsBlockDevice ebs)
An 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 EbsBlockDevice getEbs()
An 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 BlockDeviceMapping withEbs(EbsBlockDevice ebs)
An 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 String toString()
toString
in class Object
Object.toString()
public BlockDeviceMapping clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.