@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()
Parameters used to automatically set up EBS volumes when an instance is launched.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
noDevice()
Setting this value to
true suppresses the specified device included in the block device mapping of
the AMI. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends BlockDeviceMapping.Builder> |
serializableBuilderClass() |
BlockDeviceMapping.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
virtualName()
The name of the virtual device (for example,
ephemeral0). |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String virtualName()
The name of the virtual device (for example, ephemeral0).
You can specify either VirtualName or Ebs, but not both.
ephemeral0).
You can specify either VirtualName or Ebs, but not both.
public final String deviceName()
The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh). For more
information, see Device Naming
on Linux Instances in the Amazon EC2 User Guide for Linux Instances.
/dev/sdh or xvdh).
For more information, see Device Naming on Linux
Instances in the Amazon EC2 User Guide for Linux Instances.public final Ebs ebs()
Parameters used to automatically set up EBS volumes when an instance is launched.
You can specify either VirtualName or Ebs, but not both.
You can specify either VirtualName or Ebs, but not both.
public final Boolean noDevice()
Setting this value to true suppresses the specified device included in the block device mapping of
the AMI.
If NoDevice is true for the root device, instances might fail the EC2 health check. In
that case, Amazon EC2 Auto Scaling launches replacement instances.
If you specify NoDevice, you cannot specify Ebs.
true suppresses the specified device included in the block device
mapping of the AMI.
If NoDevice is true for the root device, instances might fail the EC2 health
check. In that case, Amazon EC2 Auto Scaling launches replacement instances.
If you specify NoDevice, you cannot specify Ebs.
public BlockDeviceMapping.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<BlockDeviceMapping.Builder,BlockDeviceMapping>public static BlockDeviceMapping.Builder builder()
public static Class<? extends BlockDeviceMapping.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.