Class SnapshotRecoverySource
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.SnapshotRecoverySource
-
public final class SnapshotRecoverySource extends Object
Specifies the web app that snapshot contents will be retrieved from.
-
-
Constructor Summary
Constructors Constructor Description SnapshotRecoverySource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringid()Get the id property: ARM resource ID of the source app.Stringlocation()Get the location property: Geographical location of the source web app, e.g.voidvalidate()Validates the instance.SnapshotRecoverySourcewithId(String id)Set the id property: ARM resource ID of the source app.SnapshotRecoverySourcewithLocation(String location)Set the location property: Geographical location of the source web app, e.g.
-
-
-
Method Detail
-
location
public String location()
Get the location property: Geographical location of the source web app, e.g. SouthEastAsia, SouthCentralUS.- Returns:
- the location value.
-
withLocation
public SnapshotRecoverySource withLocation(String location)
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
public String 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
public SnapshotRecoverySource withId(String id)
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.
-
-