OsDisk Class
- java.
lang. Object - com.
azure. resourcemanager. networkcloud. models. OsDisk
- com.
Implements
public final class OsDisk
implements JsonSerializable<OsDisk>
OsDisk represents configuration of the boot disk.
Constructor Summary
| Constructor | Description |
|---|---|
| OsDisk() |
Creates an instance of Os |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Os |
createOption()
Get the create |
|
Os |
deleteOption()
Get the delete |
| long |
diskSizeGB()
Get the disk |
|
static
Os |
fromJson(JsonReader jsonReader)
Reads an instance of Os |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Os |
withCreateOption(OsDiskCreateOption createOption)
Set the create |
|
Os |
withDeleteOption(OsDiskDeleteOption deleteOption)
Set the delete |
|
Os |
withDiskSizeGB(long diskSizeGB)
Set the disk |
Methods inherited from java.lang.Object
Constructor Details
OsDisk
public OsDisk()
Creates an instance of OsDisk class.
Method Details
createOption
public OsDiskCreateOption createOption()
Get the createOption property: The strategy for creating the OS disk.
Returns:
deleteOption
public OsDiskDeleteOption deleteOption()
Get the deleteOption property: The strategy for deleting the OS disk.
Returns:
diskSizeGB
public long diskSizeGB()
Get the diskSizeGB property: The size of the disk. Required if the createOption is Ephemeral. Allocations are measured in gibibytes.
Returns:
fromJson
public static OsDisk fromJson(JsonReader jsonReader)
Reads an instance of OsDisk from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withCreateOption
public OsDisk withCreateOption(OsDiskCreateOption createOption)
Set the createOption property: The strategy for creating the OS disk.
Parameters:
Returns:
withDeleteOption
public OsDisk withDeleteOption(OsDiskDeleteOption deleteOption)
Set the deleteOption property: The strategy for deleting the OS disk.
Parameters:
Returns:
withDiskSizeGB
public OsDisk withDiskSizeGB(long diskSizeGB)
Set the diskSizeGB property: The size of the disk. Required if the createOption is Ephemeral. Allocations are measured in gibibytes.
Parameters:
Returns: