Class BlockDeviceMapping
- java.lang.Object
-
- com.amazonaws.services.autoscaling.model.BlockDeviceMapping
-
- All Implemented Interfaces:
Serializable,Cloneable
public class BlockDeviceMapping extends Object implements Serializable, Cloneable
Describes a block device mapping.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BlockDeviceMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockDeviceMappingclone()booleanequals(Object obj)StringgetDeviceName()The device name exposed to the EC2 instance (for example,/dev/sdhorxvdh).EbsgetEbs()The information about the Amazon EBS volume.BooleangetNoDevice()Suppresses a device mapping.StringgetVirtualName()The name of the virtual device (for example,ephemeral0).inthashCode()BooleanisNoDevice()Suppresses a device mapping.voidsetDeviceName(String deviceName)The device name exposed to the EC2 instance (for example,/dev/sdhorxvdh).voidsetEbs(Ebs ebs)The 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).StringtoString()Returns a string representation of this object; useful for testing and debugging.BlockDeviceMappingwithDeviceName(String deviceName)The device name exposed to the EC2 instance (for example,/dev/sdhorxvdh).BlockDeviceMappingwithEbs(Ebs ebs)The information about the Amazon EBS volume.BlockDeviceMappingwithNoDevice(Boolean noDevice)Suppresses a device mapping.BlockDeviceMappingwithVirtualName(String virtualName)The name of the virtual device (for example,ephemeral0).
-
-
-
Method Detail
-
setVirtualName
public void setVirtualName(String virtualName)
The name of the virtual device (for example,
ephemeral0).- Parameters:
virtualName- The name of the virtual device (for example,ephemeral0).
-
getVirtualName
public String getVirtualName()
The name of the virtual device (for example,
ephemeral0).- Returns:
- The name of the virtual device (for example,
ephemeral0).
-
withVirtualName
public BlockDeviceMapping withVirtualName(String virtualName)
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
public void setDeviceName(String deviceName)
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
public String 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
public BlockDeviceMapping withDeviceName(String deviceName)
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
public void setEbs(Ebs ebs)
The information about the Amazon EBS volume.
- Parameters:
ebs- The information about the Amazon EBS volume.
-
getEbs
public Ebs getEbs()
The information about the Amazon EBS volume.
- Returns:
- The information about the Amazon EBS volume.
-
withEbs
public BlockDeviceMapping withEbs(Ebs ebs)
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
public void setNoDevice(Boolean 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.
- 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
public Boolean 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
public BlockDeviceMapping withNoDevice(Boolean 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.
- 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
public Boolean 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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public BlockDeviceMapping clone()
-
-