DiskSku Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. DiskSku
- com.
Implements
public final class DiskSku
implements JsonSerializable<DiskSku>
The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS.
Constructor Summary
Constructor | Description |
---|---|
DiskSku() |
Creates an instance of Disk |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Disk |
fromJson(JsonReader jsonReader)
Reads an instance of Disk |
Disk |
name()
Get the name property: The sku name. |
String |
tier()
Get the tier property: The sku tier. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Disk |
withName(DiskStorageAccountTypes name)
Set the name property: The sku name. |
Methods inherited from java.lang.Object
Constructor Details
DiskSku
public DiskSku()
Creates an instance of DiskSku class.
Method Details
fromJson
public static DiskSku fromJson(JsonReader jsonReader)
Reads an instance of DiskSku from the JsonReader.
Parameters:
Returns:
Throws:
name
public DiskStorageAccountTypes name()
Get the name property: The sku name.
Returns:
tier
public String tier()
Get the tier property: The sku tier.
Returns:
toJson
validate
public void validate()
Validates the instance.
withName
public DiskSku withName(DiskStorageAccountTypes name)
Set the name property: The sku name.
Parameters:
Returns:
Applies to
Azure SDK for Java