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 EC2 instance (for example,
/dev/sdh or xvdh). |
Ebs |
getEbs()
The information about the Amazon EBS volume.
|
Boolean |
getNoDevice()
Suppresses a device mapping.
|
String |
getVirtualName()
The name of the virtual device,
ephemeral0 to
ephemeral3. |
int |
hashCode() |
Boolean |
isNoDevice()
Suppresses a device mapping.
|
void |
setDeviceName(String deviceName)
The device name exposed to the EC2 instance (for example,
/dev/sdh or xvdh). |
void |
setEbs(Ebs ebs)
The information about the Amazon EBS volume.
|
void |
setNoDevice(Boolean noDevice)
Suppresses a device mapping.
|
void |
setVirtualName(String virtualName)
The name of the virtual device,
ephemeral0 to
ephemeral3. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BlockDeviceMapping |
withDeviceName(String deviceName)
The device name exposed to the EC2 instance (for example,
/dev/sdh or xvdh). |
BlockDeviceMapping |
withEbs(Ebs ebs)
The information about the Amazon EBS volume.
|
BlockDeviceMapping |
withNoDevice(Boolean noDevice)
Suppresses a device mapping.
|
BlockDeviceMapping |
withVirtualName(String virtualName)
The name of the virtual device,
ephemeral0 to
ephemeral3. |
public String getVirtualName()
ephemeral0 to
ephemeral3.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
ephemeral0 to
ephemeral3.public void setVirtualName(String virtualName)
ephemeral0 to
ephemeral3.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
virtualName - The name of the virtual device, ephemeral0 to
ephemeral3.public BlockDeviceMapping withVirtualName(String virtualName)
ephemeral0 to
ephemeral3.
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 name of the virtual device, ephemeral0 to
ephemeral3.public String getDeviceName()
/dev/sdh or xvdh).
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
/dev/sdh or xvdh).public void setDeviceName(String deviceName)
/dev/sdh or xvdh).
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
deviceName - The device name exposed to the EC2 instance (for example,
/dev/sdh or xvdh).public BlockDeviceMapping withDeviceName(String deviceName)
/dev/sdh or xvdh).
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 device name exposed to the EC2 instance (for example,
/dev/sdh or xvdh).public Ebs getEbs()
public void setEbs(Ebs ebs)
ebs - The information about the Amazon EBS volume.public BlockDeviceMapping withEbs(Ebs ebs)
Returns a reference to this object so that method calls can be chained together.
ebs - The information about the Amazon EBS volume.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 a 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 a 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 ObjectObject.toString()Copyright © 2014. All rights reserved.