Class SnapshotRestoreRequest
java.lang.Object
com.microsoft.azure.ProxyResource
com.microsoft.azure.management.appservice.ProxyOnlyResource
com.microsoft.azure.management.appservice.SnapshotRestoreRequest
Details about app recovery operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet if true, custom hostname conflicts will be ignored when recovering to a target web app.boolean
Get if <code>true</code> the restore operation can overwrite source app; otherwise, <code>false</code>.Get if true, site configuration, in addition to content, will be reverted.Get optional.Get point in time in which the app restore should be done, formatted as a DateTime string.Get if true, the snapshot is retrieved from DRSecondary endpoint.withIgnoreConflictingHostNames
(Boolean ignoreConflictingHostNames) Set if true, custom hostname conflicts will be ignored when recovering to a target web app.withOverwrite
(boolean overwrite) Set if <code>true</code> the restore operation can overwrite source app; otherwise, <code>false</code>.withRecoverConfiguration
(Boolean recoverConfiguration) Set if true, site configuration, in addition to content, will be reverted.withRecoverySource
(SnapshotRecoverySource recoverySource) Set optional.withSnapshotTime
(String snapshotTime) Set point in time in which the app restore should be done, formatted as a DateTime string.withUseDRSecondary
(Boolean useDRSecondary) Set if true, the snapshot is retrieved from DRSecondary endpoint.Methods inherited from class com.microsoft.azure.management.appservice.ProxyOnlyResource
kind, withKind
Methods inherited from class com.microsoft.azure.ProxyResource
id, name, type
-
Constructor Details
-
SnapshotRestoreRequest
public SnapshotRestoreRequest()
-
-
Method Details
-
snapshotTime
Get point in time in which the app restore should be done, formatted as a DateTime string.- Returns:
- the snapshotTime value
-
withSnapshotTime
Set point in time in which the app restore should be done, formatted as a DateTime string.- Parameters:
snapshotTime
- the snapshotTime value to set- Returns:
- the SnapshotRestoreRequest object itself.
-
recoverySource
Get 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:
- the recoverySource value
-
withRecoverySource
Set 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:
recoverySource
- the recoverySource value to set- Returns:
- the SnapshotRestoreRequest object itself.
-
overwrite
public boolean overwrite()Get if <code>true</code> the restore operation can overwrite source app; otherwise, <code>false</code>.- Returns:
- the overwrite value
-
withOverwrite
Set if <code>true</code> the restore operation can overwrite source app; otherwise, <code>false</code>.- Parameters:
overwrite
- the overwrite value to set- Returns:
- the SnapshotRestoreRequest object itself.
-
recoverConfiguration
Get if true, site configuration, in addition to content, will be reverted.- Returns:
- the recoverConfiguration value
-
withRecoverConfiguration
Set if true, site configuration, in addition to content, will be reverted.- Parameters:
recoverConfiguration
- the recoverConfiguration value to set- Returns:
- the SnapshotRestoreRequest object itself.
-
ignoreConflictingHostNames
Get 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:
- the ignoreConflictingHostNames value
-
withIgnoreConflictingHostNames
Set 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:
ignoreConflictingHostNames
- the ignoreConflictingHostNames value to set- Returns:
- the SnapshotRestoreRequest object itself.
-
useDRSecondary
Get if true, the snapshot is retrieved from DRSecondary endpoint.- Returns:
- the useDRSecondary value
-
withUseDRSecondary
Set if true, the snapshot is retrieved from DRSecondary endpoint.- Parameters:
useDRSecondary
- the useDRSecondary value to set- Returns:
- the SnapshotRestoreRequest object itself.
-