@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 assigned to the volume (for example,
/dev/sdh or xvdh ). |
Ebs |
getEbs()
Information to attach an EBS volume to an instance at launch.
|
Boolean |
getNoDevice()
Setting this value to
true prevents a volume that is included in the block device mapping of the AMI
from being mapped to the specified device name at launch. |
String |
getVirtualName()
The name of the instance store volume (virtual device) to attach to an instance at launch.
|
int |
hashCode() |
Boolean |
isNoDevice()
Setting this value to
true prevents a volume that is included in the block device mapping of the AMI
from being mapped to the specified device name at launch. |
void |
setDeviceName(String deviceName)
The device name assigned to the volume (for example,
/dev/sdh or xvdh ). |
void |
setEbs(Ebs ebs)
Information to attach an EBS volume to an instance at launch.
|
void |
setNoDevice(Boolean noDevice)
Setting this value to
true prevents a volume that is included in the block device mapping of the AMI
from being mapped to the specified device name at launch. |
void |
setVirtualName(String virtualName)
The name of the instance store volume (virtual device) to attach to an instance at launch.
|
String |
toString()
Returns a string representation of this object.
|
BlockDeviceMapping |
withDeviceName(String deviceName)
The device name assigned to the volume (for example,
/dev/sdh or xvdh ). |
BlockDeviceMapping |
withEbs(Ebs ebs)
Information to attach an EBS volume to an instance at launch.
|
BlockDeviceMapping |
withNoDevice(Boolean noDevice)
Setting this value to
true prevents a volume that is included in the block device mapping of the AMI
from being mapped to the specified device name at launch. |
BlockDeviceMapping |
withVirtualName(String virtualName)
The name of the instance store volume (virtual device) to attach to an instance at launch.
|
public void setVirtualName(String virtualName)
The name of the instance store volume (virtual device) to attach to an instance at launch. The name must be in
the form ephemeralX where X is a number starting from zero (0), for example,
ephemeral0
.
virtualName
- The name of the instance store volume (virtual device) to attach to an instance at launch. The name must
be in the form ephemeralX where X is a number starting from zero (0), for example,
ephemeral0
.public String getVirtualName()
The name of the instance store volume (virtual device) to attach to an instance at launch. The name must be in
the form ephemeralX where X is a number starting from zero (0), for example,
ephemeral0
.
ephemeral0
.public BlockDeviceMapping withVirtualName(String virtualName)
The name of the instance store volume (virtual device) to attach to an instance at launch. The name must be in
the form ephemeralX where X is a number starting from zero (0), for example,
ephemeral0
.
virtualName
- The name of the instance store volume (virtual device) to attach to an instance at launch. The name must
be in the form ephemeralX where X is a number starting from zero (0), for example,
ephemeral0
.public void setDeviceName(String deviceName)
The device name assigned to the volume (for example, /dev/sdh
or xvdh
). For more
information, see Device naming
on Linux instances in the Amazon EC2 User Guide for Linux Instances.
To define a block device mapping, set the device name and exactly one of the following properties:
Ebs
, NoDevice
, or VirtualName
.
deviceName
- The device name assigned to the volume (for example, /dev/sdh
or xvdh
). For more
information, see Device
naming on Linux instances in the Amazon EC2 User Guide for Linux Instances.
To define a block device mapping, set the device name and exactly one of the following properties:
Ebs
, NoDevice
, or VirtualName
.
public String getDeviceName()
The device name assigned to the volume (for example, /dev/sdh
or xvdh
). For more
information, see Device naming
on Linux instances in the Amazon EC2 User Guide for Linux Instances.
To define a block device mapping, set the device name and exactly one of the following properties:
Ebs
, NoDevice
, or VirtualName
.
/dev/sdh
or xvdh
). For
more information, see Device naming on Linux
instances in the Amazon EC2 User Guide for Linux Instances.
To define a block device mapping, set the device name and exactly one of the following properties:
Ebs
, NoDevice
, or VirtualName
.
public BlockDeviceMapping withDeviceName(String deviceName)
The device name assigned to the volume (for example, /dev/sdh
or xvdh
). For more
information, see Device naming
on Linux instances in the Amazon EC2 User Guide for Linux Instances.
To define a block device mapping, set the device name and exactly one of the following properties:
Ebs
, NoDevice
, or VirtualName
.
deviceName
- The device name assigned to the volume (for example, /dev/sdh
or xvdh
). For more
information, see Device
naming on Linux instances in the Amazon EC2 User Guide for Linux Instances.
To define a block device mapping, set the device name and exactly one of the following properties:
Ebs
, NoDevice
, or VirtualName
.
public void setEbs(Ebs ebs)
Information to attach an EBS volume to an instance at launch.
ebs
- Information to attach an EBS volume to an instance at launch.public Ebs getEbs()
Information to attach an EBS volume to an instance at launch.
public BlockDeviceMapping withEbs(Ebs ebs)
Information to attach an EBS volume to an instance at launch.
ebs
- Information to attach an EBS volume to an instance at launch.public void setNoDevice(Boolean noDevice)
Setting this value to true
prevents a volume that is included in the block device mapping of the AMI
from being mapped to the specified device name at launch.
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.
noDevice
- Setting this value to true
prevents a volume that is included in the block device mapping of
the AMI from being mapped to the specified device name at launch.
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.
public Boolean getNoDevice()
Setting this value to true
prevents a volume that is included in the block device mapping of the AMI
from being mapped to the specified device name at launch.
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.
true
prevents a volume that is included in the block device mapping of
the AMI from being mapped to the specified device name at launch.
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.
public BlockDeviceMapping withNoDevice(Boolean noDevice)
Setting this value to true
prevents a volume that is included in the block device mapping of the AMI
from being mapped to the specified device name at launch.
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.
noDevice
- Setting this value to true
prevents a volume that is included in the block device mapping of
the AMI from being mapped to the specified device name at launch.
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.
public Boolean isNoDevice()
Setting this value to true
prevents a volume that is included in the block device mapping of the AMI
from being mapped to the specified device name at launch.
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.
true
prevents a volume that is included in the block device mapping of
the AMI from being mapped to the specified device name at launch.
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.
public String toString()
toString
in class Object
Object.toString()
public BlockDeviceMapping clone()