Class ImageDiskReference


  • public final class ImageDiskReference
    extends Object
    The source image used for creating the disk.
    • Constructor Detail

      • ImageDiskReference

        public ImageDiskReference()
    • Method Detail

      • id

        public String id()
        Get the id property: A relative uri containing either a Platform Image Repository or user image reference.
        Returns:
        the id value.
      • withId

        public ImageDiskReference withId​(String id)
        Set the id property: A relative uri containing either a Platform Image Repository or user image reference.
        Parameters:
        id - the id value to set.
        Returns:
        the ImageDiskReference object itself.
      • lun

        public Integer lun()
        Get the lun property: If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
        Returns:
        the lun value.
      • withLun

        public ImageDiskReference withLun​(Integer lun)
        Set the lun property: If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
        Parameters:
        lun - the lun value to set.
        Returns:
        the ImageDiskReference object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.