Class SnapshotRecoverySource
java.lang.Object
com.azure.resourcemanager.appservice.models.SnapshotRecoverySource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SnapshotRecoverySource>
public final class SnapshotRecoverySource
extends Object
implements com.azure.json.JsonSerializable<SnapshotRecoverySource>
Specifies the web app that snapshot contents will be retrieved from.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SnapshotRecoverySource class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SnapshotRecoverySource
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SnapshotRecoverySource from the JsonReader.id()
Get the id property: ARM resource ID of the source app.location()
Get the location property: Geographical location of the source web app, e.g.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the id property: ARM resource ID of the source app.withLocation
(String location) Set the location property: Geographical location of the source web app, e.g.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SnapshotRecoverySource
public SnapshotRecoverySource()Creates an instance of SnapshotRecoverySource class.
-
-
Method Details
-
location
Get the location property: Geographical location of the source web app, e.g. SouthEastAsia, SouthCentralUS.- Returns:
- the location value.
-
withLocation
Set the location property: Geographical location of the source web app, e.g. SouthEastAsia, SouthCentralUS.- Parameters:
location
- the location value to set.- Returns:
- the SnapshotRecoverySource object itself.
-
id
Get the id property: ARM resource ID of the source app. /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} for production slots and /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} for other slots.- Returns:
- the id value.
-
withId
Set the id property: ARM resource ID of the source app. /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} for production slots and /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} for other slots.- Parameters:
id
- the id value to set.- Returns:
- the SnapshotRecoverySource object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<SnapshotRecoverySource>
- Throws:
IOException
-
fromJson
public static SnapshotRecoverySource fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SnapshotRecoverySource from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of SnapshotRecoverySource 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 SnapshotRecoverySource.
-