Class BackupPoliciesList

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

public final class BackupPoliciesList extends Object implements com.azure.json.JsonSerializable<BackupPoliciesList>
List of Backup Policies.
  • Constructor Details

    • BackupPoliciesList

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

    • value

      public List<BackupPolicyInner> value()
      Get the value property: A list of backup policies.
      Returns:
      the value value.
    • withValue

      public BackupPoliciesList withValue(List<BackupPolicyInner> value)
      Set the value property: A list of backup policies.
      Parameters:
      value - the value value to set.
      Returns:
      the BackupPoliciesList 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<BackupPoliciesList>
      Throws:
      IOException
    • fromJson

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