public final class SnapshotRestoreRequest extends ProxyOnlyResource
| Constructor and Description |
|---|
SnapshotRestoreRequest() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
ignoreConflictingHostNames()
Get the ignoreConflictingHostNames property: If true, custom hostname conflicts will be ignored when recovering
to a target web app.
|
Boolean |
overwrite()
Get the overwrite property: If <code>true</code> the restore operation can overwrite source app;
otherwise, <code>false</code>.
|
Boolean |
recoverConfiguration()
Get the recoverConfiguration property: If true, site configuration, in addition to content, will be reverted.
|
SnapshotRecoverySource |
recoverySource()
Get the recoverySource property: Optional.
|
String |
snapshotTime()
Get the snapshotTime property: Point in time in which the app restore should be done, formatted as a DateTime
string.
|
Boolean |
useDRSecondary()
Get the useDRSecondary property: If true, the snapshot is retrieved from DRSecondary endpoint.
|
void |
validate()
Validates the instance.
|
SnapshotRestoreRequest |
withIgnoreConflictingHostNames(Boolean ignoreConflictingHostNames)
Set the ignoreConflictingHostNames property: If true, custom hostname conflicts will be ignored when recovering
to a target web app.
|
SnapshotRestoreRequest |
withKind(String kind)
Set the kind property: Kind of resource.
|
SnapshotRestoreRequest |
withOverwrite(Boolean overwrite)
Set the overwrite property: If <code>true</code> the restore operation can overwrite source app;
otherwise, <code>false</code>.
|
SnapshotRestoreRequest |
withRecoverConfiguration(Boolean recoverConfiguration)
Set the recoverConfiguration property: If true, site configuration, in addition to content, will be reverted.
|
SnapshotRestoreRequest |
withRecoverySource(SnapshotRecoverySource recoverySource)
Set the recoverySource property: Optional.
|
SnapshotRestoreRequest |
withSnapshotTime(String snapshotTime)
Set the snapshotTime property: Point in time in which the app restore should be done, formatted as a DateTime
string.
|
SnapshotRestoreRequest |
withUseDRSecondary(Boolean useDRSecondary)
Set the useDRSecondary property: If true, the snapshot is retrieved from DRSecondary endpoint.
|
kindpublic SnapshotRestoreRequest withKind(String kind)
withKind in class ProxyOnlyResourcekind - the kind value to set.public String snapshotTime()
public SnapshotRestoreRequest withSnapshotTime(String snapshotTime)
snapshotTime - the snapshotTime value to set.public SnapshotRecoverySource recoverySource()
public SnapshotRestoreRequest withRecoverySource(SnapshotRecoverySource recoverySource)
recoverySource - the recoverySource value to set.public Boolean overwrite()
public SnapshotRestoreRequest withOverwrite(Boolean overwrite)
overwrite - the overwrite value to set.public Boolean recoverConfiguration()
public SnapshotRestoreRequest withRecoverConfiguration(Boolean recoverConfiguration)
recoverConfiguration - the recoverConfiguration value to set.public Boolean ignoreConflictingHostNames()
public SnapshotRestoreRequest withIgnoreConflictingHostNames(Boolean ignoreConflictingHostNames)
ignoreConflictingHostNames - the ignoreConflictingHostNames value to set.public Boolean useDRSecondary()
public SnapshotRestoreRequest withUseDRSecondary(Boolean useDRSecondary)
useDRSecondary - the useDRSecondary value to set.public void validate()
validate in class ProxyOnlyResourceIllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.