SnapshotRestoreRequest Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. ProxyOnlyResource - com.
azure. resourcemanager. appservice. models. SnapshotRestoreRequest
- com.
- com.
public final class SnapshotRestoreRequest
extends ProxyOnlyResource
Details about app recovery operation.
Constructor Summary
| Constructor | Description |
|---|---|
| SnapshotRestoreRequest() |
Creates an instance of Snapshot |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Snapshot |
fromJson(JsonReader jsonReader)
Reads an instance of Snapshot |
| String |
id()
Get the id property: Resource Id. |
| Boolean |
ignoreConflictingHostNames()
Get the ignore |
| String |
name()
Get the name property: Resource Name. |
| Boolean |
overwrite()
Get the overwrite property: If |
| Boolean |
recoverConfiguration()
Get the recover |
|
Snapshot |
recoverySource()
Get the recovery |
| 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. |
|
Snapshot |
withIgnoreConflictingHostNames(Boolean ignoreConflictingHostNames)
Set the ignore |
|
Snapshot |
withKind(String kind)
Set the kind property: Kind of resource. |
|
Snapshot |
withOverwrite(Boolean overwrite)
Set the overwrite property: If |
|
Snapshot |
withRecoverConfiguration(Boolean recoverConfiguration)
Set the recover |
|
Snapshot |
withRecoverySource(SnapshotRecoverySource recoverySource)
Set the recovery |
|
Snapshot |
withSnapshotTime(String snapshotTime)
Set the snapshot |
|
Snapshot |
withUseDRSecondary(Boolean useDRSecondary)
Set the use |
Methods inherited from ProxyOnlyResource
Methods inherited from java.lang.Object
Constructor Details
SnapshotRestoreRequest
public SnapshotRestoreRequest()
Creates an instance of SnapshotRestoreRequest class.
Method Details
fromJson
public static SnapshotRestoreRequest fromJson(JsonReader jsonReader)
Reads an instance of SnapshotRestoreRequest from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Resource Id.
Overrides:
SnapshotRestoreRequest.id()Returns:
ignoreConflictingHostNames
public Boolean ignoreConflictingHostNames()
Get the ignoreConflictingHostNames property: If true, custom hostname conflicts will be ignored when recovering to a target web app. This setting is only necessary when RecoverConfiguration is enabled.
Returns:
name
public String name()
Get the name property: Resource Name.
Overrides:
SnapshotRestoreRequest.name()Returns:
overwrite
public Boolean overwrite()
Get the overwrite property: If true the restore operation can overwrite source app; otherwise, false.
Returns:
recoverConfiguration
public Boolean recoverConfiguration()
Get the recoverConfiguration property: If true, site configuration, in addition to content, will be reverted.
Returns:
recoverySource
public SnapshotRecoverySource recoverySource()
Get the recoverySource property: Optional. Specifies the web app that snapshot contents will be retrieved from. If empty, the targeted web app will be used as the source.
Returns:
snapshotTime
public String snapshotTime()
Get the snapshotTime property: Point in time in which the app restore should be done, formatted as a DateTime string.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SnapshotRestoreRequest.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Resource type.
Overrides:
SnapshotRestoreRequest.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:
SnapshotRestoreRequest.validate()withIgnoreConflictingHostNames
public SnapshotRestoreRequest withIgnoreConflictingHostNames(Boolean ignoreConflictingHostNames)
Set the ignoreConflictingHostNames property: If true, custom hostname conflicts will be ignored when recovering to a target web app. This setting is only necessary when RecoverConfiguration is enabled.
Parameters:
Returns:
withKind
public SnapshotRestoreRequest withKind(String kind)
Set the kind property: Kind of resource.
Overrides:
SnapshotRestoreRequest.withKind(String kind)Parameters:
withOverwrite
public SnapshotRestoreRequest withOverwrite(Boolean overwrite)
Set the overwrite property: If true the restore operation can overwrite source app; otherwise, false.
Parameters:
Returns:
withRecoverConfiguration
public SnapshotRestoreRequest withRecoverConfiguration(Boolean recoverConfiguration)
Set the recoverConfiguration property: If true, site configuration, in addition to content, will be reverted.
Parameters:
Returns:
withRecoverySource
public SnapshotRestoreRequest withRecoverySource(SnapshotRecoverySource recoverySource)
Set the recoverySource property: Optional. Specifies the web app that snapshot contents will be retrieved from. If empty, the targeted web app will be used as the source.
Parameters:
Returns:
withSnapshotTime
public SnapshotRestoreRequest withSnapshotTime(String snapshotTime)
Set the snapshotTime property: Point in time in which the app restore should be done, formatted as a DateTime string.
Parameters:
Returns:
withUseDRSecondary
public SnapshotRestoreRequest withUseDRSecondary(Boolean useDRSecondary)
Set the useDRSecondary property: If true, the snapshot is retrieved from DRSecondary endpoint.
Parameters:
Returns: