Class ImageDiskReference

java.lang.Object
com.azure.resourcemanager.compute.models.ImageDiskReference

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the communityGalleryImageId property: A relative uri containing a community Azure Compute Gallery image reference.
    id()
    Get the id property: A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.
    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.
    Get the sharedGalleryImageId property: A relative uri containing a direct shared Azure Compute Gallery image reference.
    void
    Validates the instance.
    withCommunityGalleryImageId(String communityGalleryImageId)
    Set the communityGalleryImageId property: A relative uri containing a community Azure Compute Gallery image reference.
    Set the id property: A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.
    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.
    withSharedGalleryImageId(String sharedGalleryImageId)
    Set the sharedGalleryImageId property: A relative uri containing a direct shared Azure Compute Gallery image reference.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ImageDiskReference

      public ImageDiskReference()
  • Method Details

    • id

      public String id()
      Get the id property: A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery 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, user image, or Azure Compute Gallery image reference.
      Parameters:
      id - the id value to set.
      Returns:
      the ImageDiskReference object itself.
    • sharedGalleryImageId

      public String sharedGalleryImageId()
      Get the sharedGalleryImageId property: A relative uri containing a direct shared Azure Compute Gallery image reference.
      Returns:
      the sharedGalleryImageId value.
    • withSharedGalleryImageId

      public ImageDiskReference withSharedGalleryImageId(String sharedGalleryImageId)
      Set the sharedGalleryImageId property: A relative uri containing a direct shared Azure Compute Gallery image reference.
      Parameters:
      sharedGalleryImageId - the sharedGalleryImageId value to set.
      Returns:
      the ImageDiskReference object itself.
    • communityGalleryImageId

      public String communityGalleryImageId()
      Get the communityGalleryImageId property: A relative uri containing a community Azure Compute Gallery image reference.
      Returns:
      the communityGalleryImageId value.
    • withCommunityGalleryImageId

      public ImageDiskReference withCommunityGalleryImageId(String communityGalleryImageId)
      Set the communityGalleryImageId property: A relative uri containing a community Azure Compute Gallery image reference.
      Parameters:
      communityGalleryImageId - the communityGalleryImageId 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.