Package com.azure.compute.batch.models
Class ManagedDisk
java.lang.Object
com.azure.compute.batch.models.ManagedDisk
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedDisk>
public final class ManagedDisk
extends Object
implements com.azure.json.JsonSerializable<ManagedDisk>
The managed disk parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ManagedDiskfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedDisk from the JsonReader.Get the securityProfile property: Specifies the security profile settings for the managed disk.Get the storageAccountType property: The storage account type for managed disk.setSecurityProfile(VMDiskSecurityProfile securityProfile) Set the securityProfile property: Specifies the security profile settings for the managed disk.setStorageAccountType(StorageAccountType storageAccountType) Set the storageAccountType property: The storage account type for managed disk.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.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
-
ManagedDisk
public ManagedDisk()Creates an instance of ManagedDisk class.
-
-
Method Details
-
getStorageAccountType
Get the storageAccountType property: The storage account type for managed disk.- Returns:
- the storageAccountType value.
-
setStorageAccountType
Set the storageAccountType property: The storage account type for managed disk.- Parameters:
storageAccountType- the storageAccountType value to set.- Returns:
- the ManagedDisk object itself.
-
getSecurityProfile
Get the securityProfile property: Specifies the security profile settings for the managed disk.- Returns:
- the securityProfile value.
-
setSecurityProfile
Set the securityProfile property: Specifies the security profile settings for the managed disk.- Parameters:
securityProfile- the securityProfile value to set.- Returns:
- the ManagedDisk object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedDisk>- Throws:
IOException
-
fromJson
Reads an instance of ManagedDisk from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedDisk if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ManagedDisk.
-