DeletedAppRestoreRequest Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. ProxyOnlyResource - com.
azure. resourcemanager. appservice. models. DeletedAppRestoreRequest
- com.
- com.
public final class DeletedAppRestoreRequest
extends ProxyOnlyResource
Details about restoring a deleted app.
Constructor Summary
| Constructor | Description |
|---|---|
| DeletedAppRestoreRequest() |
Creates an instance of Deleted |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
deletedSiteId()
Get the deleted |
|
static
Deleted |
fromJson(JsonReader jsonReader)
Reads an instance of Deleted |
| String |
id()
Get the id property: Resource Id. |
| String |
name()
Get the name property: Resource Name. |
| Boolean |
recoverConfiguration()
Get the recover |
| String |
snapshotTime()
Get the snapshot |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: Resource type. |
| Boolean |
useDRSecondary()
Get the use |
| void |
validate()
Validates the instance. |
|
Deleted |
withDeletedSiteId(String deletedSiteId)
Set the deleted |
|
Deleted |
withKind(String kind)
Set the kind property: Kind of resource. |
|
Deleted |
withRecoverConfiguration(Boolean recoverConfiguration)
Set the recover |
|
Deleted |
withSnapshotTime(String snapshotTime)
Set the snapshot |
|
Deleted |
withUseDRSecondary(Boolean useDRSecondary)
Set the use |
Methods inherited from ProxyOnlyResource
Methods inherited from java.lang.Object
Constructor Details
DeletedAppRestoreRequest
public DeletedAppRestoreRequest()
Creates an instance of DeletedAppRestoreRequest class.
Method Details
deletedSiteId
public String deletedSiteId()
Get the deletedSiteId property: ARM resource ID of the deleted app. Example: /subscriptions/{subId}/providers/Microsoft.Web/deletedSites/{deletedSiteId}.
Returns:
fromJson
public static DeletedAppRestoreRequest fromJson(JsonReader jsonReader)
Reads an instance of DeletedAppRestoreRequest from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Resource Id.
Overrides:
DeletedAppRestoreRequest.id()Returns:
name
public String name()
Get the name property: Resource Name.
Overrides:
DeletedAppRestoreRequest.name()Returns:
recoverConfiguration
public Boolean recoverConfiguration()
Get the recoverConfiguration property: If true, deleted site configuration, in addition to content, will be restored.
Returns:
snapshotTime
public String snapshotTime()
Get the snapshotTime property: Point in time to restore the deleted app from, formatted as a DateTime string. If unspecified, default value is the time that the app was deleted.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DeletedAppRestoreRequest.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Resource type.
Overrides:
DeletedAppRestoreRequest.type()Returns:
useDRSecondary
public Boolean useDRSecondary()
Get the useDRSecondary property: If true, the snapshot is retrieved from DRSecondary endpoint.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
DeletedAppRestoreRequest.validate()withDeletedSiteId
public DeletedAppRestoreRequest withDeletedSiteId(String deletedSiteId)
Set the deletedSiteId property: ARM resource ID of the deleted app. Example: /subscriptions/{subId}/providers/Microsoft.Web/deletedSites/{deletedSiteId}.
Parameters:
Returns:
withKind
public DeletedAppRestoreRequest withKind(String kind)
Set the kind property: Kind of resource.
Overrides:
DeletedAppRestoreRequest.withKind(String kind)Parameters:
withRecoverConfiguration
public DeletedAppRestoreRequest withRecoverConfiguration(Boolean recoverConfiguration)
Set the recoverConfiguration property: If true, deleted site configuration, in addition to content, will be restored.
Parameters:
Returns:
withSnapshotTime
public DeletedAppRestoreRequest withSnapshotTime(String snapshotTime)
Set the snapshotTime property: Point in time to restore the deleted app from, formatted as a DateTime string. If unspecified, default value is the time that the app was deleted.
Parameters:
Returns:
withUseDRSecondary
public DeletedAppRestoreRequest withUseDRSecondary(Boolean useDRSecondary)
Set the useDRSecondary property: If true, the snapshot is retrieved from DRSecondary endpoint.
Parameters:
Returns: