Class BlockDeviceMapping

java.lang.Object
org.jclouds.openstack.nova.v2_0.domain.BlockDeviceMapping

public class BlockDeviceMapping extends Object
A representation of a block device that can be used to boot a Nova instance.
  • Constructor Details

    • BlockDeviceMapping

      @ConstructorProperties({"uuid","device_name","device_type","volume_size","source_type","destination_type","disk_bus","no_device","guest_format","boot_index","delete_on_termination"}) protected BlockDeviceMapping(String uuid, String deviceName, String deviceType, Integer volumeSize, String sourceType, String destinationType, String diskBus, Boolean noDevice, String guestFormat, Integer bootIndex, Boolean deleteOnTermination)
  • Method Details

    • getUuid

      @Nullable public String getUuid()
      Returns:
      the uuid of the volume
    • getDeviceName

      @Nullable public String getDeviceName()
      Returns:
      the device name
    • getDeviceType

      @Nullable public String getDeviceType()
      Returns:
      the device type
    • getVolumeSize

      @Nullable public Integer getVolumeSize()
      Returns:
      the size of the volume
    • getSourceType

      @Nullable public String getSourceType()
      Returns:
      the source type of the block device
    • getDestinationType

      @Nullable public String getDestinationType()
      Returns:
      the destination type of the block device
    • getDiskBus

      @Nullable public String getDiskBus()
      Returns:
      the disk bus of the block device
    • getNoDevice

      @Nullable public Boolean getNoDevice()
      Returns:
      true if there is no block device
    • getGuestFormat

      @Nullable public String getGuestFormat()
      Returns:
      the guest format of the block device
    • getBootIndex

      @Nullable public Integer getBootIndex()
      Returns:
      the boot index of the block device
    • getDeleteOnTermination

      @Nullable public Boolean getDeleteOnTermination()
      Returns:
      true if the block device should terminate on deletion
    • hashCode

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

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

      protected com.google.common.base.MoreObjects.ToStringHelper string()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static BlockDeviceMapping.Builder builder()
    • toBuilder

      public BlockDeviceMapping.Builder toBuilder()