public class BlockDeviceMapping extends Object implements Serializable
The BlockDeviceMapping
data type.
Constructor and Description |
---|
BlockDeviceMapping() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDeviceName()
The name of the device within Amazon EC2 (for example, /dev/sdh or
xvdh).
|
Ebs |
getEbs()
The Elastic Block Storage volume information.
|
Boolean |
getNoDevice()
Suppresses the device mapping.
|
String |
getVirtualName()
The virtual name associated with the device.
|
int |
hashCode() |
Boolean |
isNoDevice()
Suppresses the device mapping.
|
void |
setDeviceName(String deviceName)
The name of the device within Amazon EC2 (for example, /dev/sdh or
xvdh).
|
void |
setEbs(Ebs ebs)
The Elastic Block Storage volume information.
|
void |
setNoDevice(Boolean noDevice)
Suppresses the device mapping.
|
void |
setVirtualName(String virtualName)
The virtual name associated with the device.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BlockDeviceMapping |
withDeviceName(String deviceName)
The name of the device within Amazon EC2 (for example, /dev/sdh or
xvdh).
|
BlockDeviceMapping |
withEbs(Ebs ebs)
The Elastic Block Storage volume information.
|
BlockDeviceMapping |
withNoDevice(Boolean noDevice)
Suppresses the device mapping.
|
BlockDeviceMapping |
withVirtualName(String virtualName)
The virtual name associated with the device.
|
public String getVirtualName()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setVirtualName(String virtualName)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
virtualName
- The virtual name associated with the device.public BlockDeviceMapping withVirtualName(String virtualName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
virtualName
- The virtual name associated with the device.public String getDeviceName()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setDeviceName(String deviceName)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
deviceName
- The name of the device within Amazon EC2 (for example, /dev/sdh or
xvdh).public BlockDeviceMapping withDeviceName(String deviceName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
deviceName
- The name of the device within Amazon EC2 (for example, /dev/sdh or
xvdh).public Ebs getEbs()
public void setEbs(Ebs ebs)
ebs
- The Elastic Block Storage volume information.public BlockDeviceMapping withEbs(Ebs ebs)
Returns a reference to this object so that method calls can be chained together.
ebs
- The Elastic Block Storage volume information.public Boolean isNoDevice()
NoDevice
is set
to true
for the root device, the instance might fail the
EC2 health check. Auto Scaling launches a replacement instance if the
instance fails the health check.NoDevice
is set
to true
for the root device, the instance might fail the
EC2 health check. Auto Scaling launches a replacement instance if the
instance fails the health check.public void setNoDevice(Boolean noDevice)
NoDevice
is set
to true
for the root device, the instance might fail the
EC2 health check. Auto Scaling launches a replacement instance if the
instance fails the health check.noDevice
- Suppresses the device mapping. NoDevice
is set
to true
for the root device, the instance might fail the
EC2 health check. Auto Scaling launches a replacement instance if the
instance fails the health check.public BlockDeviceMapping withNoDevice(Boolean noDevice)
NoDevice
is set
to true
for the root device, the instance might fail the
EC2 health check. Auto Scaling launches a replacement instance if the
instance fails the health check.Returns a reference to this object so that method calls can be chained together.
noDevice
- Suppresses the device mapping. NoDevice
is set
to true
for the root device, the instance might fail the
EC2 health check. Auto Scaling launches a replacement instance if the
instance fails the health check.public Boolean getNoDevice()
NoDevice
is set
to true
for the root device, the instance might fail the
EC2 health check. Auto Scaling launches a replacement instance if the
instance fails the health check.NoDevice
is set
to true
for the root device, the instance might fail the
EC2 health check. Auto Scaling launches a replacement instance if the
instance fails the health check.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.