public class BlockDeviceMapping extends Object implements Serializable
Describes a block device mapping.
Constructor and Description |
---|
BlockDeviceMapping() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDeviceName()
The device name exposed to the instance (for example,
/dev/sdh ). |
EbsBlockDevice |
getEbs()
Parameters used to automatically set up Amazon EBS volumes when the
instance is launched.
|
String |
getNoDevice()
Suppresses the specified device included in the block device mapping
of the AMI.
|
String |
getVirtualName()
The virtual device name (ephemeral[0..3]).
|
int |
hashCode() |
void |
setDeviceName(String deviceName)
The device name exposed to the instance (for example,
/dev/sdh ). |
void |
setEbs(EbsBlockDevice ebs)
Parameters used to automatically set up Amazon EBS volumes when the
instance is launched.
|
void |
setNoDevice(String noDevice)
Suppresses the specified device included in the block device mapping
of the AMI.
|
void |
setVirtualName(String virtualName)
The virtual device name (ephemeral[0..3]).
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BlockDeviceMapping |
withDeviceName(String deviceName)
The device name exposed to the instance (for example,
/dev/sdh ). |
BlockDeviceMapping |
withEbs(EbsBlockDevice ebs)
Parameters used to automatically set up Amazon EBS volumes when the
instance is launched.
|
BlockDeviceMapping |
withNoDevice(String noDevice)
Suppresses the specified device included in the block device mapping
of the AMI.
|
BlockDeviceMapping |
withVirtualName(String virtualName)
The virtual device name (ephemeral[0..3]).
|
public String getVirtualName()
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.
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 setVirtualName(String virtualName)
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[0..3]). 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(String virtualName)
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.
Returns a reference to this object so that method calls can be chained together.
virtualName
- The virtual device name (ephemeral[0..3]). 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 String getDeviceName()
/dev/sdh
)./dev/sdh
).public void setDeviceName(String deviceName)
/dev/sdh
).deviceName
- The device name exposed to the instance (for example,
/dev/sdh
).public BlockDeviceMapping withDeviceName(String deviceName)
/dev/sdh
).
Returns a reference to this object so that method calls can be chained together.
deviceName
- The device name exposed to the instance (for example,
/dev/sdh
).public EbsBlockDevice getEbs()
public void setEbs(EbsBlockDevice ebs)
ebs
- Parameters used to automatically set up Amazon EBS volumes when the
instance is launched.public BlockDeviceMapping withEbs(EbsBlockDevice ebs)
Returns a reference to this object so that method calls can be chained together.
ebs
- Parameters used to automatically set up Amazon EBS volumes when the
instance is launched.public String getNoDevice()
public void setNoDevice(String noDevice)
noDevice
- Suppresses the specified device included in the block device mapping
of the AMI.public BlockDeviceMapping withNoDevice(String noDevice)
Returns a reference to this object so that method calls can be chained together.
noDevice
- Suppresses the specified device included in the block device mapping
of the AMI.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.