Class ComputeDataDisk
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.ComputeDataDisk
A data disks attached to a virtual machine.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the diskSizeGiB property: Gets data disk size in GiB.diskUri()
Get the diskUri property: When backed by a blob, the URI of underlying blob.Get the managedDiskId property: When backed by managed disk, this is the ID of the compute disk resource.name()
Get the name property: Gets data disk name.void
validate()
Validates the instance.withDiskSizeGiB
(Integer diskSizeGiB) Set the diskSizeGiB property: Gets data disk size in GiB.withDiskUri
(String diskUri) Set the diskUri property: When backed by a blob, the URI of underlying blob.withManagedDiskId
(String managedDiskId) Set the managedDiskId property: When backed by managed disk, this is the ID of the compute disk resource.Set the name property: Gets data disk name.
-
Constructor Details
-
ComputeDataDisk
public ComputeDataDisk()Creates an instance of ComputeDataDisk class.
-
-
Method Details
-
name
Get the name property: Gets data disk name.- Returns:
- the name value.
-
withName
Set the name property: Gets data disk name.- Parameters:
name
- the name value to set.- Returns:
- the ComputeDataDisk object itself.
-
diskUri
Get the diskUri property: When backed by a blob, the URI of underlying blob.- Returns:
- the diskUri value.
-
withDiskUri
Set the diskUri property: When backed by a blob, the URI of underlying blob.- Parameters:
diskUri
- the diskUri value to set.- Returns:
- the ComputeDataDisk object itself.
-
managedDiskId
Get the managedDiskId property: When backed by managed disk, this is the ID of the compute disk resource.- Returns:
- the managedDiskId value.
-
withManagedDiskId
Set the managedDiskId property: When backed by managed disk, this is the ID of the compute disk resource.- Parameters:
managedDiskId
- the managedDiskId value to set.- Returns:
- the ComputeDataDisk object itself.
-
diskSizeGiB
Get the diskSizeGiB property: Gets data disk size in GiB.- Returns:
- the diskSizeGiB value.
-
withDiskSizeGiB
Set the diskSizeGiB property: Gets data disk size in GiB.- Parameters:
diskSizeGiB
- the diskSizeGiB value to set.- Returns:
- the ComputeDataDisk object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-