@Generated(value="software.amazon.awssdk:codegen") public final class BlockDeviceMapping extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BlockDeviceMapping.Builder,BlockDeviceMapping>
Describes a block device mapping.
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 exposed to the EC2 instance (for example,
/dev/sdh or xvdh ). |
Ebs |
ebs()
The information about the Amazon EBS volume.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
noDevice()
Suppresses a device mapping.
|
List<SdkField<?>> |
sdkFields() |
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 name of the virtual device (for example,
ephemeral0 ). |
copy
public String virtualName()
The name of the virtual device (for example, ephemeral0
).
ephemeral0
).public String deviceName()
The device name exposed to the EC2 instance (for example, /dev/sdh
or xvdh
).
/dev/sdh
or xvdh
).public Ebs ebs()
The information about the Amazon EBS volume.
public Boolean noDevice()
Suppresses a device mapping.
If this parameter is true for the root device, the instance might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches a replacement instance.
If this parameter is true for the root device, the instance might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches a replacement instance.
public BlockDeviceMapping.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<BlockDeviceMapping.Builder,BlockDeviceMapping>
public static BlockDeviceMapping.Builder builder()
public static Class<? extends BlockDeviceMapping.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.