Class BlockDeviceMapping
- All Implemented Interfaces:
Serializable, Cloneable
Describes a block device mapping.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe device name exposed to the EC2 instance (for example,/dev/sdhorxvdh).getEbs()The information about the Amazon EBS volume.Suppresses a device mapping.The name of the virtual device (for example,ephemeral0).inthashCode()Suppresses a device mapping.voidsetDeviceName(String deviceName) The device name exposed to the EC2 instance (for example,/dev/sdhorxvdh).voidThe information about the Amazon EBS volume.voidsetNoDevice(Boolean noDevice) Suppresses a device mapping.voidsetVirtualName(String virtualName) The name of the virtual device (for example,ephemeral0).toString()Returns a string representation of this object; useful for testing and debugging.withDeviceName(String deviceName) The device name exposed to the EC2 instance (for example,/dev/sdhorxvdh).The information about the Amazon EBS volume.withNoDevice(Boolean noDevice) Suppresses a device mapping.withVirtualName(String virtualName) The name of the virtual device (for example,ephemeral0).
-
Constructor Details
-
BlockDeviceMapping
public BlockDeviceMapping()
-
-
Method Details
-
setVirtualName
The name of the virtual device (for example,
ephemeral0).- Parameters:
virtualName- The name of the virtual device (for example,ephemeral0).
-
getVirtualName
The name of the virtual device (for example,
ephemeral0).- Returns:
- The name of the virtual device (for example,
ephemeral0).
-
withVirtualName
The name of the virtual device (for example,
ephemeral0).- Parameters:
virtualName- The name of the virtual device (for example,ephemeral0).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDeviceName
The device name exposed to the EC2 instance (for example,
/dev/sdhorxvdh).- Parameters:
deviceName- The device name exposed to the EC2 instance (for example,/dev/sdhorxvdh).
-
getDeviceName
The device name exposed to the EC2 instance (for example,
/dev/sdhorxvdh).- Returns:
- The device name exposed to the EC2 instance (for example,
/dev/sdhorxvdh).
-
withDeviceName
The device name exposed to the EC2 instance (for example,
/dev/sdhorxvdh).- Parameters:
deviceName- The device name exposed to the EC2 instance (for example,/dev/sdhorxvdh).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEbs
The information about the Amazon EBS volume.
- Parameters:
ebs- The information about the Amazon EBS volume.
-
getEbs
The information about the Amazon EBS volume.
- Returns:
- The information about the Amazon EBS volume.
-
withEbs
The information about the Amazon EBS volume.
- Parameters:
ebs- The information about the Amazon EBS volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNoDevice
Suppresses a device mapping.
If this parameter is 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.
- Parameters:
noDevice- Suppresses a device mapping.If this parameter is 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.
-
getNoDevice
Suppresses a device mapping.
If this parameter is 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:
- Suppresses a device mapping.
If this parameter is 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.
-
withNoDevice
Suppresses a device mapping.
If this parameter is 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.
- Parameters:
noDevice- Suppresses a device mapping.If this parameter is 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:
- Returns a reference to this object so that method calls can be chained together.
-
isNoDevice
Suppresses a device mapping.
If this parameter is 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:
- Suppresses a device mapping.
If this parameter is 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.
-
toString
-
equals
-
hashCode
-
clone
-