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 Details

    • ManagedDisk

      public ManagedDisk()
      Creates an instance of ManagedDisk class.
  • Method Details

    • getStorageAccountType

      public StorageAccountType getStorageAccountType()
      Get the storageAccountType property: The storage account type for managed disk.
      Returns:
      the storageAccountType value.
    • setStorageAccountType

      public ManagedDisk setStorageAccountType(StorageAccountType storageAccountType)
      Set the storageAccountType property: The storage account type for managed disk.
      Parameters:
      storageAccountType - the storageAccountType value to set.
      Returns:
      the ManagedDisk object itself.
    • getSecurityProfile

      public VMDiskSecurityProfile getSecurityProfile()
      Get the securityProfile property: Specifies the security profile settings for the managed disk.
      Returns:
      the securityProfile value.
    • setSecurityProfile

      public ManagedDisk setSecurityProfile(VMDiskSecurityProfile securityProfile)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ManagedDisk>
      Throws:
      IOException
    • fromJson

      public static ManagedDisk fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.