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:
  • Constructor Details

    • BlockDeviceMapping

      public BlockDeviceMapping()
  • Method Details

    • 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/sdh or xvdh).

      Parameters:
      deviceName - The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).
    • getDeviceName

      public String getDeviceName()

      The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).

      Returns:
      The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).
    • withDeviceName

      public BlockDeviceMapping withDeviceName(String deviceName)

      The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).

      Parameters:
      deviceName - The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).
      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:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public BlockDeviceMapping clone()
      Overrides:
      clone in class Object