Class SnapshotRestoreRequest
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.appservice.models.ProxyOnlyResource
com.azure.resourcemanager.appservice.models.SnapshotRestoreRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
Details about app recovery operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SnapshotRestoreRequest class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SnapshotRestoreRequestfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SnapshotRestoreRequest from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.Get the ignoreConflictingHostNames property: If true, custom hostname conflicts will be ignored when recovering to a target web app.name()Get the name property: The name of the resource.Get the overwrite property: If <code>true</code> the restore operation can overwrite source app; otherwise, <code>false</code>.Get the recoverConfiguration property: If true, site configuration, in addition to content, will be reverted.Get the recoverySource property: Optional.Get the snapshotTime property: Point in time in which the app restore should be done, formatted as a DateTime string.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.Get the useDRSecondary property: If true, the snapshot is retrieved from DRSecondary endpoint.voidvalidate()Validates the instance.withIgnoreConflictingHostNames(Boolean ignoreConflictingHostNames) Set the ignoreConflictingHostNames property: If true, custom hostname conflicts will be ignored when recovering to a target web app.Set the kind property: Kind of resource.withOverwrite(Boolean overwrite) Set the overwrite property: If <code>true</code> the restore operation can overwrite source app; otherwise, <code>false</code>.withRecoverConfiguration(Boolean recoverConfiguration) Set the recoverConfiguration property: If true, site configuration, in addition to content, will be reverted.withRecoverySource(SnapshotRecoverySource recoverySource) Set the recoverySource property: Optional.withSnapshotTime(String snapshotTime) Set the snapshotTime property: Point in time in which the app restore should be done, formatted as a DateTime string.withUseDRSecondary(Boolean useDRSecondary) Set the useDRSecondary property: If true, the snapshot is retrieved from DRSecondary endpoint.Methods inherited from class com.azure.resourcemanager.appservice.models.ProxyOnlyResource
kindMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SnapshotRestoreRequest
public SnapshotRestoreRequest()Creates an instance of SnapshotRestoreRequest class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classProxyOnlyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classProxyOnlyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classProxyOnlyResource- Returns:
- the id value.
-
withKind
Set the kind property: Kind of resource.- Overrides:
withKindin classProxyOnlyResource- Parameters:
kind- the kind value to set.- Returns:
- the ProxyOnlyResource object itself.
-
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
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 SnapshotRestoreRequest object itself.
-
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
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 SnapshotRestoreRequest object itself.
-
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
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 SnapshotRestoreRequest object itself.
-
recoverConfiguration
Get the recoverConfiguration property: If true, site configuration, in addition to content, will be reverted.- Returns:
- the recoverConfiguration value.
-
withRecoverConfiguration
Set the recoverConfiguration property: 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 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
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 SnapshotRestoreRequest object itself.
-
useDRSecondary
Get the useDRSecondary property: If true, the snapshot is retrieved from DRSecondary endpoint.- Returns:
- the useDRSecondary value.
-
withUseDRSecondary
Set the useDRSecondary property: If true, the snapshot is retrieved from DRSecondary endpoint.- Parameters:
useDRSecondary- the useDRSecondary value to set.- Returns:
- the SnapshotRestoreRequest object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classProxyOnlyResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classProxyOnlyResource- Throws:
IOException
-
fromJson
public static SnapshotRestoreRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SnapshotRestoreRequest from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SnapshotRestoreRequest if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the SnapshotRestoreRequest.
-