Class DiskVolumeConfiguration
java.lang.Object
com.azure.resourcemanager.workloads.models.DiskVolumeConfiguration
The disk configuration required for the selected volume.
-
Constructor Summary
ConstructorDescriptionCreates an instance of DiskVolumeConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptioncount()
Get the count property: The total number of disks required for the concerned volume.sizeGB()
Get the sizeGB property: The disk size in GB.sku()
Get the sku property: The disk SKU details.void
validate()
Validates the instance.Set the count property: The total number of disks required for the concerned volume.withSizeGB
(Long sizeGB) Set the sizeGB property: The disk size in GB.Set the sku property: The disk SKU details.
-
Constructor Details
-
DiskVolumeConfiguration
public DiskVolumeConfiguration()Creates an instance of DiskVolumeConfiguration class.
-
-
Method Details
-
count
Get the count property: The total number of disks required for the concerned volume.- Returns:
- the count value.
-
withCount
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
Get the sizeGB property: The disk size in GB.- Returns:
- the sizeGB value.
-
withSizeGB
Set the sizeGB property: The disk size in GB.- Parameters:
sizeGB
- the sizeGB value to set.- Returns:
- the DiskVolumeConfiguration object itself.
-
sku
Get the sku property: The disk SKU details.- Returns:
- the sku value.
-
withSku
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.
-