Class CustomPersistentDiskResource

java.lang.Object
com.azure.resourcemanager.appplatform.models.CustomPersistentDiskResource
All Implemented Interfaces:
com.azure.json.JsonSerializable<CustomPersistentDiskResource>

public final class CustomPersistentDiskResource extends Object implements com.azure.json.JsonSerializable<CustomPersistentDiskResource>
Custom persistent disk resource payload.
  • Constructor Details

    • CustomPersistentDiskResource

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

    • customPersistentDiskProperties

      public CustomPersistentDiskProperties customPersistentDiskProperties()
      Get the customPersistentDiskProperties property: Properties of the custom persistent disk resource payload.
      Returns:
      the customPersistentDiskProperties value.
    • withCustomPersistentDiskProperties

      public CustomPersistentDiskResource withCustomPersistentDiskProperties(CustomPersistentDiskProperties customPersistentDiskProperties)
      Set the customPersistentDiskProperties property: Properties of the custom persistent disk resource payload.
      Parameters:
      customPersistentDiskProperties - the customPersistentDiskProperties value to set.
      Returns:
      the CustomPersistentDiskResource object itself.
    • storageId

      public String storageId()
      Get the storageId property: The resource id of Azure Spring Apps Storage resource.
      Returns:
      the storageId value.
    • withStorageId

      public CustomPersistentDiskResource withStorageId(String storageId)
      Set the storageId property: The resource id of Azure Spring Apps Storage resource.
      Parameters:
      storageId - the storageId value to set.
      Returns:
      the CustomPersistentDiskResource object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

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

      public static CustomPersistentDiskResource fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CustomPersistentDiskResource from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CustomPersistentDiskResource 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 CustomPersistentDiskResource.