Class BlockDeviceMapping
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a block device mapping.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The device name exposed to the instance (for example,/dev/sdh
orxvdh
).getEbs()
Parameters used to automatically set up EBS volumes when the instance is launched.Suppresses the specified device included in the block device mapping of the AMI.The virtual device name (ephemeral
N).int
hashCode()
void
setDeviceName
(String deviceName) The device name exposed to the instance (for example,/dev/sdh
orxvdh
).void
setEbs
(EbsBlockDevice ebs) Parameters used to automatically set up 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
N).toString()
Returns a string representation of this object; useful for testing and debugging.withDeviceName
(String deviceName) The device name exposed to the instance (for example,/dev/sdh
orxvdh
).withEbs
(EbsBlockDevice ebs) Parameters used to automatically set up EBS volumes when the instance is launched.withNoDevice
(String noDevice) Suppresses the specified device included in the block device mapping of the AMI.withVirtualName
(String virtualName) The virtual device name (ephemeral
N).
-
Constructor Details
-
BlockDeviceMapping
public BlockDeviceMapping()
-
-
Method Details
-
setVirtualName
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 forephemeral0
andephemeral1
.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.
- Parameters:
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 forephemeral0
andephemeral1
.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.
-
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 forephemeral0
andephemeral1
.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.
- Returns:
- 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 forephemeral0
andephemeral1
.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.
-
withVirtualName
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 forephemeral0
andephemeral1
.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.
- Parameters:
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 forephemeral0
andephemeral1
.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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDeviceName
The device name exposed to the instance (for example,
/dev/sdh
orxvdh
).- Parameters:
deviceName
- The device name exposed to the instance (for example,/dev/sdh
orxvdh
).
-
getDeviceName
The device name exposed to the instance (for example,
/dev/sdh
orxvdh
).- Returns:
- The device name exposed to the instance (for example,
/dev/sdh
orxvdh
).
-
withDeviceName
The device name exposed to the instance (for example,
/dev/sdh
orxvdh
).- Parameters:
deviceName
- The device name exposed to the instance (for example,/dev/sdh
orxvdh
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEbs
Parameters used to automatically set up EBS volumes when the instance is launched.
- Parameters:
ebs
- Parameters used to automatically set up EBS volumes when the instance is launched.
-
getEbs
Parameters used to automatically set up EBS volumes when the instance is launched.
- Returns:
- Parameters used to automatically set up EBS volumes when the instance is launched.
-
withEbs
Parameters used to automatically set up EBS volumes when the instance is launched.
- Parameters:
ebs
- Parameters used to automatically set up EBS volumes when the instance is launched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNoDevice
Suppresses the specified device included in the block device mapping of the AMI.
- Parameters:
noDevice
- Suppresses the specified device included in the block device mapping of the AMI.
-
getNoDevice
Suppresses the specified device included in the block device mapping of the AMI.
- Returns:
- Suppresses the specified device included in the block device mapping of the AMI.
-
withNoDevice
Suppresses the specified device included in the block device mapping of the AMI.
- Parameters:
noDevice
- Suppresses the specified device included in the block device mapping of the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-