Class RestorePointCollectionUpdate

java.lang.Object
com.azure.resourcemanager.compute.models.UpdateResource
com.azure.resourcemanager.compute.models.RestorePointCollectionUpdate
All Implemented Interfaces:
com.azure.json.JsonSerializable<UpdateResource>

public final class RestorePointCollectionUpdate extends UpdateResource
Update Restore Point collection parameters.
  • Constructor Details

    • RestorePointCollectionUpdate

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

    • withTags

      public RestorePointCollectionUpdate withTags(Map<String,String> tags)
      Set the tags property: Resource tags.
      Overrides:
      withTags in class UpdateResource
      Parameters:
      tags - the tags value to set.
      Returns:
      the UpdateResource object itself.
    • source

      Get the source property: The properties of the source resource that this restore point collection is created from.
      Returns:
      the source value.
    • withSource

      Set the source property: The properties of the source resource that this restore point collection is created from.
      Parameters:
      source - the source value to set.
      Returns:
      the RestorePointCollectionUpdate object itself.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: The provisioning state of the restore point collection.
      Returns:
      the provisioningState value.
    • restorePointCollectionId

      public String restorePointCollectionId()
      Get the restorePointCollectionId property: The unique id of the restore point collection.
      Returns:
      the restorePointCollectionId value.
    • restorePoints

      public List<RestorePointInner> restorePoints()
      Get the restorePoints property: A list containing all restore points created under this restore point collection.
      Returns:
      the restorePoints value.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class UpdateResource
      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<UpdateResource>
      Overrides:
      toJson in class UpdateResource
      Throws:
      IOException
    • fromJson

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