Class DiskStorageProfile
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.DiskStorageProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DiskStorageProfile>
public final class DiskStorageProfile
extends Object
implements com.azure.json.JsonSerializable<DiskStorageProfile>
Kafka disk storage profile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the dataDiskSize property: Managed Disk size in GB.Get the dataDiskType property: Managed Disk Type.static DiskStorageProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DiskStorageProfile from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDataDiskSize(int dataDiskSize) Set the dataDiskSize property: Managed Disk size in GB.withDataDiskType(DataDiskType dataDiskType) Set the dataDiskType property: Managed Disk Type.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DiskStorageProfile
public DiskStorageProfile()Creates an instance of DiskStorageProfile class.
-
-
Method Details
-
dataDiskSize
public int dataDiskSize()Get the dataDiskSize property: Managed Disk size in GB. The maximum supported disk size for Standard and Premium HDD/SSD is 32TB, except for Premium SSD v2, which supports up to 64TB.- Returns:
- the dataDiskSize value.
-
withDataDiskSize
Set the dataDiskSize property: Managed Disk size in GB. The maximum supported disk size for Standard and Premium HDD/SSD is 32TB, except for Premium SSD v2, which supports up to 64TB.- Parameters:
dataDiskSize- the dataDiskSize value to set.- Returns:
- the DiskStorageProfile object itself.
-
dataDiskType
Get the dataDiskType property: Managed Disk Type.- Returns:
- the dataDiskType value.
-
withDataDiskType
Set the dataDiskType property: Managed Disk Type.- Parameters:
dataDiskType- the dataDiskType value to set.- Returns:
- the DiskStorageProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DiskStorageProfile>- Throws:
IOException
-
fromJson
Reads an instance of DiskStorageProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DiskStorageProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the DiskStorageProfile.
-