@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BlockDeviceMapping extends Object implements Serializable, Cloneable
Describes a block device mapping.
Constructor and Description |
---|
BlockDeviceMapping() |
Modifier and Type | Method and Description |
---|---|
BlockDeviceMapping |
clone() |
boolean |
equals(Object obj) |
String |
getDeviceName()
The device name exposed to the EC2 instance (for example,
/dev/sdh or xvdh ). |
Ebs |
getEbs()
Parameters used to automatically set up EBS volumes when an instance is launched.
|
Boolean |
getNoDevice()
Setting this value to
true suppresses the specified device included in the block device mapping of
the AMI. |
String |
getVirtualName()
The name of the virtual device (for example,
ephemeral0 ). |
int |
hashCode() |
Boolean |
isNoDevice()
Setting this value to
true suppresses the specified device included in the block device mapping of
the AMI. |
void |
setDeviceName(String deviceName)
The device name exposed to the EC2 instance (for example,
/dev/sdh or xvdh ). |
void |
setEbs(Ebs ebs)
Parameters used to automatically set up EBS volumes when an instance is launched.
|
void |
setNoDevice(Boolean noDevice)
Setting this value to
true suppresses the specified device included in the block device mapping of
the AMI. |
void |
setVirtualName(String virtualName)
The name of the virtual device (for example,
ephemeral0 ). |
String |
toString()
Returns a string representation of this object.
|
BlockDeviceMapping |
withDeviceName(String deviceName)
The device name exposed to the EC2 instance (for example,
/dev/sdh or xvdh ). |
BlockDeviceMapping |
withEbs(Ebs ebs)
Parameters used to automatically set up EBS volumes when an instance is launched.
|
BlockDeviceMapping |
withNoDevice(Boolean noDevice)
Setting this value to
true suppresses the specified device included in the block device mapping of
the AMI. |
BlockDeviceMapping |
withVirtualName(String virtualName)
The name of the virtual device (for example,
ephemeral0 ). |
public void setVirtualName(String virtualName)
The name of the virtual device (for example, ephemeral0
).
You can specify either VirtualName
or Ebs
, but not both.
virtualName
- The name of the virtual device (for example, ephemeral0
).
You can specify either VirtualName
or Ebs
, but not both.
public String getVirtualName()
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 BlockDeviceMapping withVirtualName(String virtualName)
The name of the virtual device (for example, ephemeral0
).
You can specify either VirtualName
or Ebs
, but not both.
virtualName
- The name of the virtual device (for example, ephemeral0
).
You can specify either VirtualName
or Ebs
, but not both.
public void setDeviceName(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.
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.public String getDeviceName()
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 BlockDeviceMapping withDeviceName(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.
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.public void setEbs(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.
ebs
- Parameters used to automatically set up EBS volumes when an instance is launched.
You can specify either VirtualName
or Ebs
, but not both.
public Ebs getEbs()
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 BlockDeviceMapping withEbs(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.
ebs
- Parameters used to automatically set up EBS volumes when an instance is launched.
You can specify either VirtualName
or Ebs
, but not both.
public void setNoDevice(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
.
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
.
public Boolean getNoDevice()
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 withNoDevice(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
.
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
.
public Boolean isNoDevice()
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 String toString()
toString
in class Object
Object.toString()
public BlockDeviceMapping clone()