public class BlockDeviceMapping
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a block device mapping.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
deviceName
The device name exposed to the instance (for example,
/dev/sdh or xvdh ). |
private EbsBlockDevice |
ebs
Parameters used to automatically set up EBS volumes when the instance is
launched.
|
private java.lang.String |
noDevice
Suppresses the specified device included in the block device mapping of
the AMI.
|
private java.lang.String |
virtualName
The virtual device name (
ephemeral N). |
Constructor and Description |
---|
BlockDeviceMapping() |
Modifier and Type | Method and Description |
---|---|
BlockDeviceMapping |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDeviceName()
The device name exposed to the instance (for example,
/dev/sdh or xvdh ). |
EbsBlockDevice |
getEbs()
Parameters used to automatically set up EBS volumes when the instance is
launched.
|
java.lang.String |
getNoDevice()
Suppresses the specified device included in the block device mapping of
the AMI.
|
java.lang.String |
getVirtualName()
The virtual device name (
ephemeral N). |
int |
hashCode() |
void |
setDeviceName(java.lang.String deviceName)
The device name exposed to the instance (for example,
/dev/sdh or xvdh ). |
void |
setEbs(EbsBlockDevice ebs)
Parameters used to automatically set up EBS volumes when the instance is
launched.
|
void |
setNoDevice(java.lang.String noDevice)
Suppresses the specified device included in the block device mapping of
the AMI.
|
void |
setVirtualName(java.lang.String virtualName)
The virtual device name (
ephemeral N). |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BlockDeviceMapping |
withDeviceName(java.lang.String deviceName)
The device name exposed to the instance (for example,
/dev/sdh or xvdh ). |
BlockDeviceMapping |
withEbs(EbsBlockDevice ebs)
Parameters used to automatically set up EBS volumes when the instance is
launched.
|
BlockDeviceMapping |
withNoDevice(java.lang.String noDevice)
Suppresses the specified device included in the block device mapping of
the AMI.
|
BlockDeviceMapping |
withVirtualName(java.lang.String virtualName)
The virtual device name (
ephemeral N). |
private java.lang.String virtualName
The virtual device name (ephemeral
N). Instance store volumes
are numbered starting from 0. An instance type with 2 available instance
store volumes can specify mappings for ephemeral0
and
ephemeral1
.The number of available instance store volumes
depends on the instance type. After you connect to the instance, you must
mount the volume.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
private java.lang.String deviceName
The device name exposed to the instance (for example,
/dev/sdh
or xvdh
).
private EbsBlockDevice ebs
Parameters used to automatically set up EBS volumes when the instance is launched.
private java.lang.String noDevice
Suppresses the specified device included in the block device mapping of the AMI.
public void setVirtualName(java.lang.String virtualName)
The virtual device name (ephemeral
N). Instance store volumes
are numbered starting from 0. An instance type with 2 available instance
store volumes can specify mappings for ephemeral0
and
ephemeral1
.The number of available instance store volumes
depends on the instance type. After you connect to the instance, you must
mount the volume.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
virtualName
- The virtual device name (ephemeral
N). Instance store
volumes are numbered starting from 0. An instance type with 2
available instance store volumes can specify mappings for
ephemeral0
and ephemeral1
.The number of
available instance store volumes depends on the instance type.
After you connect to the instance, you must mount the volume.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
public java.lang.String getVirtualName()
The virtual device name (ephemeral
N). Instance store volumes
are numbered starting from 0. An instance type with 2 available instance
store volumes can specify mappings for ephemeral0
and
ephemeral1
.The number of available instance store volumes
depends on the instance type. After you connect to the instance, you must
mount the volume.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
ephemeral
N). Instance store
volumes are numbered starting from 0. An instance type with 2
available instance store volumes can specify mappings for
ephemeral0
and ephemeral1
.The number of
available instance store volumes depends on the instance type.
After you connect to the instance, you must mount the volume.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
public BlockDeviceMapping withVirtualName(java.lang.String virtualName)
The virtual device name (ephemeral
N). Instance store volumes
are numbered starting from 0. An instance type with 2 available instance
store volumes can specify mappings for ephemeral0
and
ephemeral1
.The number of available instance store volumes
depends on the instance type. After you connect to the instance, you must
mount the volume.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
virtualName
- The virtual device name (ephemeral
N). Instance store
volumes are numbered starting from 0. An instance type with 2
available instance store volumes can specify mappings for
ephemeral0
and ephemeral1
.The number of
available instance store volumes depends on the instance type.
After you connect to the instance, you must mount the volume.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
public void setDeviceName(java.lang.String deviceName)
The device name exposed to the instance (for example,
/dev/sdh
or xvdh
).
deviceName
- The device name exposed to the instance (for example,
/dev/sdh
or xvdh
).public java.lang.String getDeviceName()
The device name exposed to the instance (for example,
/dev/sdh
or xvdh
).
/dev/sdh
or xvdh
).public BlockDeviceMapping withDeviceName(java.lang.String deviceName)
The device name exposed to the instance (for example,
/dev/sdh
or xvdh
).
deviceName
- The device name exposed to the instance (for example,
/dev/sdh
or xvdh
).public void setEbs(EbsBlockDevice ebs)
Parameters used to automatically set up EBS volumes when the instance is launched.
ebs
- Parameters used to automatically set up EBS volumes when the
instance is launched.public EbsBlockDevice getEbs()
Parameters used to automatically set up EBS volumes when the instance is launched.
public BlockDeviceMapping withEbs(EbsBlockDevice ebs)
Parameters used to automatically set up EBS volumes when the instance is launched.
ebs
- Parameters used to automatically set up EBS volumes when the
instance is launched.public void setNoDevice(java.lang.String noDevice)
Suppresses the specified device included in the block device mapping of the AMI.
noDevice
- Suppresses the specified device included in the block device
mapping of the AMI.public java.lang.String getNoDevice()
Suppresses the specified device included in the block device mapping of the AMI.
public BlockDeviceMapping withNoDevice(java.lang.String noDevice)
Suppresses the specified device included in the block device mapping of the AMI.
noDevice
- Suppresses the specified device included in the block device
mapping of the AMI.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public BlockDeviceMapping clone()
clone
in class java.lang.Object