Class Disk
java.lang.Object
com.azure.resourcemanager.baremetalinfrastructure.models.Disk
Specifies the disk information fo the AzureBareMetal instance.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the diskSizeGB property: Specifies the size of an empty data disk in gigabytes.lun()
Get the lun property: Specifies the logical unit number of the data disk.name()
Get the name property: The disk name.void
validate()
Validates the instance.withDiskSizeGB
(Integer diskSizeGB) Set the diskSizeGB property: Specifies the size of an empty data disk in gigabytes.Set the name property: The disk name.
-
Constructor Details
-
Disk
public Disk()Creates an instance of Disk class.
-
-
Method Details
-
name
Get the name property: The disk name.- Returns:
- the name value.
-
withName
Set the name property: The disk name.- Parameters:
name
- the name value to set.- Returns:
- the Disk object itself.
-
diskSizeGB
Get the diskSizeGB property: Specifies the size of an empty data disk in gigabytes.- Returns:
- the diskSizeGB value.
-
withDiskSizeGB
Set the diskSizeGB property: Specifies the size of an empty data disk in gigabytes.- Parameters:
diskSizeGB
- the diskSizeGB value to set.- Returns:
- the Disk object itself.
-
lun
Get the lun property: Specifies 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.- Returns:
- the lun value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-