Class DiskVolumeConfiguration

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

public final class DiskVolumeConfiguration extends Object
The disk configuration required for the selected volume.
  • Constructor Details

    • DiskVolumeConfiguration

      public DiskVolumeConfiguration()
      Creates an instance of DiskVolumeConfiguration class.
  • Method Details

    • count

      public Long count()
      Get the count property: The total number of disks required for the concerned volume.
      Returns:
      the count value.
    • withCount

      public DiskVolumeConfiguration withCount(Long count)
      Set the count property: The total number of disks required for the concerned volume.
      Parameters:
      count - the count value to set.
      Returns:
      the DiskVolumeConfiguration object itself.
    • sizeGB

      public Long sizeGB()
      Get the sizeGB property: The disk size in GB.
      Returns:
      the sizeGB value.
    • withSizeGB

      public DiskVolumeConfiguration withSizeGB(Long sizeGB)
      Set the sizeGB property: The disk size in GB.
      Parameters:
      sizeGB - the sizeGB value to set.
      Returns:
      the DiskVolumeConfiguration object itself.
    • sku

      public DiskSku sku()
      Get the sku property: The disk SKU details.
      Returns:
      the sku value.
    • withSku

      public DiskVolumeConfiguration withSku(DiskSku sku)
      Set the sku property: The disk SKU details.
      Parameters:
      sku - the sku value to set.
      Returns:
      the DiskVolumeConfiguration object itself.
    • validate

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