java.lang.Object
com.azure.resourcemanager.workloads.models.DiskInfo

public final class DiskInfo extends Object
Disk resource creation details.
  • Constructor Details

    • DiskInfo

      public DiskInfo()
  • Method Details

    • storageType

      public DiskStorageType storageType()
      Get the storageType property: Storage type.
      Returns:
      the storageType value.
    • withStorageType

      public DiskInfo withStorageType(DiskStorageType storageType)
      Set the storageType property: Storage type.
      Parameters:
      storageType - the storageType value to set.
      Returns:
      the DiskInfo object itself.
    • sizeInGB

      public Long sizeInGB()
      Get the sizeInGB property: Disk size in GB.
      Returns:
      the sizeInGB value.
    • withSizeInGB

      public DiskInfo withSizeInGB(Long sizeInGB)
      Set the sizeInGB property: Disk size in GB.
      Parameters:
      sizeInGB - the sizeInGB value to set.
      Returns:
      the DiskInfo object itself.
    • validate

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