Disk Class
- java.
lang. Object - com.
azure. resourcemanager. largeinstance. models. Disk
- com.
Implements
public final class Disk
implements JsonSerializable<Disk>
Specifies the disk information fo the Azure Large Instance.
Constructor Summary
| Constructor | Description |
|---|---|
| Disk() |
Creates an instance of Disk class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Integer |
diskSizeGB()
Get the disk |
| static Disk |
fromJson(JsonReader jsonReader)
Reads an instance of Disk from the Json |
| Integer |
lun()
Get the lun property: Specifies the logical unit number of the data disk. |
| String |
name()
Get the name property: The disk name. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| Disk |
withDiskSizeGB(Integer diskSizeGB)
Set the disk |
| Disk |
withName(String name)
Set the name property: The disk name. |
Methods inherited from java.lang.Object
Constructor Details
Disk
public Disk()
Creates an instance of Disk class.
Method Details
diskSizeGB
public Integer diskSizeGB()
Get the diskSizeGB property: Specifies the size of an empty data disk in gigabytes.
Returns:
fromJson
public static Disk fromJson(JsonReader jsonReader)
Reads an instance of Disk from the JsonReader.
Parameters:
Returns:
Throws:
lun
public Integer 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:
name
public String name()
Get the name property: The disk name.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDiskSizeGB
public Disk withDiskSizeGB(Integer diskSizeGB)
Set the diskSizeGB property: Specifies the size of an empty data disk in gigabytes.
Parameters:
Returns:
withName
public Disk withName(String name)
Set the name property: The disk name.
Parameters:
Returns: