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>
Update Restore Point collection parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RestorePointCollectionUpdate class. -
Method Summary
Modifier and TypeMethodDescriptionstatic RestorePointCollectionUpdatefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RestorePointCollectionUpdate from the JsonReader.Get the provisioningState property: The provisioning state of the restore point collection.Get the restorePointCollectionId property: The unique id of the restore point collection.Get the restorePoints property: A list containing all restore points created under this restore point collection.source()Get the source property: The properties of the source resource that this restore point collection is created from.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the source property: The properties of the source resource that this restore point collection is created from.Set the tags property: Resource tags.Methods inherited from class com.azure.resourcemanager.compute.models.UpdateResource
tagsMethods 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
-
RestorePointCollectionUpdate
public RestorePointCollectionUpdate()Creates an instance of RestorePointCollectionUpdate class.
-
-
Method Details
-
withTags
Set the tags property: Resource tags.- Overrides:
withTagsin classUpdateResource- 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
Get the provisioningState property: The provisioning state of the restore point collection.- Returns:
- the provisioningState value.
-
restorePointCollectionId
Get the restorePointCollectionId property: The unique id of the restore point collection.- Returns:
- the restorePointCollectionId value.
-
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:
validatein classUpdateResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<UpdateResource>- Overrides:
toJsonin classUpdateResource- 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.
-