DeletedAppRestoreRequest Class

public final class DeletedAppRestoreRequest
extends ProxyOnlyResource

Details about restoring a deleted app.

Constructor Summary

Constructor Description
DeletedAppRestoreRequest()

Creates an instance of DeletedAppRestoreRequest class.

Method Summary

Modifier and Type Method and Description
String deletedSiteId()

Get the deletedSiteId property: ARM resource ID of the deleted app.

static DeletedAppRestoreRequest fromJson(JsonReader jsonReader)

Reads an instance of DeletedAppRestoreRequest from the JsonReader.

String id()

Get the id property: Resource Id.

String name()

Get the name property: Resource Name.

Boolean recoverConfiguration()

Get the recoverConfiguration property: If true, deleted site configuration, in addition to content, will be restored.

String snapshotTime()

Get the snapshotTime property: Point in time to restore the deleted app from, formatted as a DateTime string.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

Boolean useDRSecondary()

Get the useDRSecondary property: If true, the snapshot is retrieved from DRSecondary endpoint.

void validate()

Validates the instance.

DeletedAppRestoreRequest withDeletedSiteId(String deletedSiteId)

Set the deletedSiteId property: ARM resource ID of the deleted app.

DeletedAppRestoreRequest withKind(String kind)

Set the kind property: Kind of resource.

DeletedAppRestoreRequest withRecoverConfiguration(Boolean recoverConfiguration)

Set the recoverConfiguration property: If true, deleted site configuration, in addition to content, will be restored.

DeletedAppRestoreRequest withSnapshotTime(String snapshotTime)

Set the snapshotTime property: Point in time to restore the deleted app from, formatted as a DateTime string.

DeletedAppRestoreRequest withUseDRSecondary(Boolean useDRSecondary)

Set the useDRSecondary property: If true, the snapshot is retrieved from DRSecondary endpoint.

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:

the deletedSiteId value.

fromJson

public static DeletedAppRestoreRequest fromJson(JsonReader jsonReader)

Reads an instance of DeletedAppRestoreRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DeletedAppRestoreRequest 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 DeletedAppRestoreRequest.

id

public String id()

Get the id property: Resource Id.

Overrides:

DeletedAppRestoreRequest.id()

Returns:

the id value.

name

public String name()

Get the name property: Resource Name.

Overrides:

DeletedAppRestoreRequest.name()

Returns:

the name value.

recoverConfiguration

public Boolean recoverConfiguration()

Get the recoverConfiguration property: If true, deleted site configuration, in addition to content, will be restored.

Returns:

the recoverConfiguration value.

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:

the snapshotTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DeletedAppRestoreRequest.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type.

Overrides:

DeletedAppRestoreRequest.type()

Returns:

the type value.

useDRSecondary

public Boolean useDRSecondary()

Get the useDRSecondary property: If true, the snapshot is retrieved from DRSecondary endpoint.

Returns:

the useDRSecondary value.

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:

deletedSiteId - the deletedSiteId value to set.

Returns:

the DeletedAppRestoreRequest object itself.

withKind

public DeletedAppRestoreRequest withKind(String kind)

Set the kind property: Kind of resource.

Overrides:

DeletedAppRestoreRequest.withKind(String kind)

Parameters:

kind

withRecoverConfiguration

public DeletedAppRestoreRequest withRecoverConfiguration(Boolean recoverConfiguration)

Set the recoverConfiguration property: If true, deleted site configuration, in addition to content, will be restored.

Parameters:

recoverConfiguration - the recoverConfiguration value to set.

Returns:

the DeletedAppRestoreRequest object itself.

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:

snapshotTime - the snapshotTime value to set.

Returns:

the DeletedAppRestoreRequest object itself.

withUseDRSecondary

public DeletedAppRestoreRequest withUseDRSecondary(Boolean useDRSecondary)

Set the useDRSecondary property: If true, the snapshot is retrieved from DRSecondary endpoint.

Parameters:

useDRSecondary - the useDRSecondary value to set.

Returns:

the DeletedAppRestoreRequest object itself.

Applies to