Class DataDisksToAttach
java.lang.Object
com.azure.resourcemanager.compute.models.DataDisksToAttach
Describes the data disk to be attached.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondiskId()Get the diskId property: ID of the managed data disk.lun()Get the lun property: The logical unit number of the data disk.voidvalidate()Validates the instance.withDiskId(String diskId) Set the diskId property: ID of the managed data disk.Set the lun property: The logical unit number of the data disk.
-
Constructor Details
-
DataDisksToAttach
public DataDisksToAttach()Creates an instance of DataDisksToAttach class.
-
-
Method Details
-
diskId
Get the diskId property: ID of the managed data disk.- Returns:
- the diskId value.
-
withDiskId
Set the diskId property: ID of the managed data disk.- Parameters:
diskId- the diskId value to set.- Returns:
- the DataDisksToAttach object itself.
-
lun
Get the lun property: The logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. If not specified, lun would be auto assigned.- Returns:
- the lun value.
-
withLun
Set the lun property: The logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. If not specified, lun would be auto assigned.- Parameters:
lun- the lun value to set.- Returns:
- the DataDisksToAttach object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-