@Generated(value="software.amazon.awssdk:codegen") public class BlockDeviceMapping extends Object implements StructuredPojo, ToCopyableBuilder<BlockDeviceMapping.Builder,BlockDeviceMapping>
Describes a block device mapping. This data type maps directly to the Amazon EC2 BlockDeviceMapping data type.
| Modifier and Type | Class and Description |
|---|---|
static interface |
BlockDeviceMapping.Builder |
| Modifier and Type | Method and Description |
|---|---|
static BlockDeviceMapping.Builder |
builder() |
String |
deviceName()
The device name that is exposed to the instance, such as
/dev/sdh. |
EbsBlockDevice |
ebs()
An
EBSBlockDevice that defines how to configure an Amazon EBS volume when the instance is launched. |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
String |
noDevice()
Suppresses the specified device included in the AMI's block device mapping.
|
static Class<? extends BlockDeviceMapping.Builder> |
serializableBuilderClass() |
BlockDeviceMapping.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
virtualName()
The virtual device name.
|
copypublic 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.
/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 noDevice()
Suppresses the specified device included in the AMI's block device mapping.
public String virtualName()
The virtual device name. For more information, see BlockDeviceMapping.
public EbsBlockDevice ebs()
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.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<BlockDeviceMapping.Builder,BlockDeviceMapping>public static BlockDeviceMapping.Builder builder()
public static Class<? extends BlockDeviceMapping.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.