Class DiskInfo
java.lang.Object
com.azure.resourcemanager.workloads.models.DiskInfo
Disk resource creation details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsizeInGB()
Get the sizeInGB property: Disk size in GB.Get the storageType property: Storage type.void
validate()
Validates the instance.withSizeInGB
(Long sizeInGB) Set the sizeInGB property: Disk size in GB.withStorageType
(DiskStorageType storageType) Set the storageType property: Storage type.
-
Constructor Details
-
DiskInfo
public DiskInfo()
-
-
Method Details
-
storageType
Get the storageType property: Storage type.- Returns:
- the storageType value.
-
withStorageType
Set the storageType property: Storage type.- Parameters:
storageType
- the storageType value to set.- Returns:
- the DiskInfo object itself.
-
sizeInGB
Get the sizeInGB property: Disk size in GB.- Returns:
- the sizeInGB value.
-
withSizeInGB
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.
-