Class SnapshotRestoreRequestProperties
- java.lang.Object
-
- com.azure.resourcemanager.appservice.fluent.models.SnapshotRestoreRequestProperties
-
public final class SnapshotRestoreRequestProperties extends Object
SnapshotRestoreRequest resource specific properties.
-
-
Constructor Summary
Constructors Constructor Description SnapshotRestoreRequestProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanignoreConflictingHostNames()Get the ignoreConflictingHostNames property: If true, custom hostname conflicts will be ignored when recovering to a target web app.booleanoverwrite()Get the overwrite property: If <code>true</code> the restore operation can overwrite source app; otherwise, <code>false</code>.BooleanrecoverConfiguration()Get the recoverConfiguration property: If true, site configuration, in addition to content, will be reverted.SnapshotRecoverySourcerecoverySource()Get the recoverySource property: Optional.StringsnapshotTime()Get the snapshotTime property: Point in time in which the app restore should be done, formatted as a DateTime string.BooleanuseDRSecondary()Get the useDRSecondary property: If true, the snapshot is retrieved from DRSecondary endpoint.voidvalidate()Validates the instance.SnapshotRestoreRequestPropertieswithIgnoreConflictingHostNames(Boolean ignoreConflictingHostNames)Set the ignoreConflictingHostNames property: If true, custom hostname conflicts will be ignored when recovering to a target web app.SnapshotRestoreRequestPropertieswithOverwrite(boolean overwrite)Set the overwrite property: If <code>true</code> the restore operation can overwrite source app; otherwise, <code>false</code>.SnapshotRestoreRequestPropertieswithRecoverConfiguration(Boolean recoverConfiguration)Set the recoverConfiguration property: If true, site configuration, in addition to content, will be reverted.SnapshotRestoreRequestPropertieswithRecoverySource(SnapshotRecoverySource recoverySource)Set the recoverySource property: Optional.SnapshotRestoreRequestPropertieswithSnapshotTime(String snapshotTime)Set the snapshotTime property: Point in time in which the app restore should be done, formatted as a DateTime string.SnapshotRestoreRequestPropertieswithUseDRSecondary(Boolean useDRSecondary)Set the useDRSecondary property: If true, the snapshot is retrieved from DRSecondary endpoint.
-
-
-
Method Detail
-
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:
- the snapshotTime value.
-
withSnapshotTime
public SnapshotRestoreRequestProperties withSnapshotTime(String snapshotTime)
Set the snapshotTime property: 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 SnapshotRestoreRequestProperties object itself.
-
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:
- the recoverySource value.
-
withRecoverySource
public SnapshotRestoreRequestProperties 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:
recoverySource- the recoverySource value to set.- Returns:
- the SnapshotRestoreRequestProperties object itself.
-
overwrite
public boolean overwrite()
Get the overwrite property: If <code>true</code> the restore operation can overwrite source app; otherwise, <code>false</code>.- Returns:
- the overwrite value.
-
withOverwrite
public SnapshotRestoreRequestProperties withOverwrite(boolean overwrite)
Set the overwrite property: If <code>true</code> the restore operation can overwrite source app; otherwise, <code>false</code>.- Parameters:
overwrite- the overwrite value to set.- Returns:
- the SnapshotRestoreRequestProperties object itself.
-
recoverConfiguration
public Boolean recoverConfiguration()
Get the recoverConfiguration property: If true, site configuration, in addition to content, will be reverted.- Returns:
- the recoverConfiguration value.
-
withRecoverConfiguration
public SnapshotRestoreRequestProperties withRecoverConfiguration(Boolean recoverConfiguration)
Set the recoverConfiguration property: If true, site configuration, in addition to content, will be reverted.- Parameters:
recoverConfiguration- the recoverConfiguration value to set.- Returns:
- the SnapshotRestoreRequestProperties object itself.
-
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:
- the ignoreConflictingHostNames value.
-
withIgnoreConflictingHostNames
public SnapshotRestoreRequestProperties 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:
ignoreConflictingHostNames- the ignoreConflictingHostNames value to set.- Returns:
- the SnapshotRestoreRequestProperties object itself.
-
useDRSecondary
public Boolean useDRSecondary()
Get the useDRSecondary property: If true, the snapshot is retrieved from DRSecondary endpoint.- Returns:
- the useDRSecondary value.
-
withUseDRSecondary
public SnapshotRestoreRequestProperties 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 SnapshotRestoreRequestProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-