Class RestoreRequestInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.appservice.models.ProxyOnlyResource
com.azure.resourcemanager.appservice.fluent.models.RestoreRequestInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
Description of a restore request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the adjustConnectionStrings property: <code>true</code> if SiteConfig.ConnectionStrings should be set in new app; otherwise, <code>false</code>.Get the appServicePlan property: Specify app service plan that will own restored site.blobName()Get the blobName property: Name of a blob which contains the backup.Get the databases property: Collection of databases which should be restored.static RestoreRequestInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RestoreRequestInner from the JsonReader.Get the hostingEnvironment property: App Service Environment name, if needed (only when restoring an app to an App Service Environment).id()Get the id property: Fully qualified resource Id for the resource.Get the ignoreConflictingHostNames property: Changes a logic when restoring an app with custom domains.Get the ignoreDatabases property: Ignore the databases and only restore the site content.name()Get the name property: The name of the resource.Get the operationType property: Operation type.Get the overwrite property: <code>true</code> if the restore operation can overwrite target app; otherwise, <code>false</code>.siteName()Get the siteName property: Name of an app.Get the storageAccountUrl property: SAS URL to the container.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withAdjustConnectionStrings(Boolean adjustConnectionStrings) Set the adjustConnectionStrings property: <code>true</code> if SiteConfig.ConnectionStrings should be set in new app; otherwise, <code>false</code>.withAppServicePlan(String appServicePlan) Set the appServicePlan property: Specify app service plan that will own restored site.withBlobName(String blobName) Set the blobName property: Name of a blob which contains the backup.withDatabases(List<DatabaseBackupSetting> databases) Set the databases property: Collection of databases which should be restored.withHostingEnvironment(String hostingEnvironment) Set the hostingEnvironment property: App Service Environment name, if needed (only when restoring an app to an App Service Environment).withIgnoreConflictingHostNames(Boolean ignoreConflictingHostNames) Set the ignoreConflictingHostNames property: Changes a logic when restoring an app with custom domains.withIgnoreDatabases(Boolean ignoreDatabases) Set the ignoreDatabases property: Ignore the databases and only restore the site content.Set the kind property: Kind of resource.withOperationType(BackupRestoreOperationType operationType) Set the operationType property: Operation type.withOverwrite(Boolean overwrite) Set the overwrite property: <code>true</code> if the restore operation can overwrite target app; otherwise, <code>false</code>.withSiteName(String siteName) Set the siteName property: Name of an app.withStorageAccountUrl(String storageAccountUrl) Set the storageAccountUrl property: SAS URL to the container.Methods inherited from class ProxyOnlyResource
kindMethods inherited from class 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
-
RestoreRequestInner
public RestoreRequestInner()Creates an instance of RestoreRequestInner 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.
-
storageAccountUrl
Get the storageAccountUrl property: SAS URL to the container.- Returns:
- the storageAccountUrl value.
-
withStorageAccountUrl
Set the storageAccountUrl property: SAS URL to the container.- Parameters:
storageAccountUrl- the storageAccountUrl value to set.- Returns:
- the RestoreRequestInner object itself.
-
blobName
Get the blobName property: Name of a blob which contains the backup.- Returns:
- the blobName value.
-
withBlobName
Set the blobName property: Name of a blob which contains the backup.- Parameters:
blobName- the blobName value to set.- Returns:
- the RestoreRequestInner object itself.
-
overwrite
Get the overwrite property: <code>true</code> if the restore operation can overwrite target app; otherwise, <code>false</code>. <code>true</code> is needed if trying to restore over an existing app.- Returns:
- the overwrite value.
-
withOverwrite
Set the overwrite property: <code>true</code> if the restore operation can overwrite target app; otherwise, <code>false</code>. <code>true</code> is needed if trying to restore over an existing app.- Parameters:
overwrite- the overwrite value to set.- Returns:
- the RestoreRequestInner object itself.
-
siteName
-
withSiteName
Set the siteName property: Name of an app.- Parameters:
siteName- the siteName value to set.- Returns:
- the RestoreRequestInner object itself.
-
databases
Get the databases property: Collection of databases which should be restored. This list has to match the list of databases included in the backup.- Returns:
- the databases value.
-
withDatabases
Set the databases property: Collection of databases which should be restored. This list has to match the list of databases included in the backup.- Parameters:
databases- the databases value to set.- Returns:
- the RestoreRequestInner object itself.
-
ignoreConflictingHostNames
Get the ignoreConflictingHostNames property: Changes a logic when restoring an app with custom domains. <code>true</code> to remove custom domains automatically. If <code>false</code>, custom domains are added to the app's object when it is being restored, but that might fail due to conflicts during the operation.- Returns:
- the ignoreConflictingHostNames value.
-
withIgnoreConflictingHostNames
Set the ignoreConflictingHostNames property: Changes a logic when restoring an app with custom domains. <code>true</code> to remove custom domains automatically. If <code>false</code>, custom domains are added to the app's object when it is being restored, but that might fail due to conflicts during the operation.- Parameters:
ignoreConflictingHostNames- the ignoreConflictingHostNames value to set.- Returns:
- the RestoreRequestInner object itself.
-
ignoreDatabases
Get the ignoreDatabases property: Ignore the databases and only restore the site content.- Returns:
- the ignoreDatabases value.
-
withIgnoreDatabases
Set the ignoreDatabases property: Ignore the databases and only restore the site content.- Parameters:
ignoreDatabases- the ignoreDatabases value to set.- Returns:
- the RestoreRequestInner object itself.
-
appServicePlan
Get the appServicePlan property: Specify app service plan that will own restored site.- Returns:
- the appServicePlan value.
-
withAppServicePlan
Set the appServicePlan property: Specify app service plan that will own restored site.- Parameters:
appServicePlan- the appServicePlan value to set.- Returns:
- the RestoreRequestInner object itself.
-
operationType
Get the operationType property: Operation type.- Returns:
- the operationType value.
-
withOperationType
Set the operationType property: Operation type.- Parameters:
operationType- the operationType value to set.- Returns:
- the RestoreRequestInner object itself.
-
adjustConnectionStrings
Get the adjustConnectionStrings property: <code>true</code> if SiteConfig.ConnectionStrings should be set in new app; otherwise, <code>false</code>.- Returns:
- the adjustConnectionStrings value.
-
withAdjustConnectionStrings
Set the adjustConnectionStrings property: <code>true</code> if SiteConfig.ConnectionStrings should be set in new app; otherwise, <code>false</code>.- Parameters:
adjustConnectionStrings- the adjustConnectionStrings value to set.- Returns:
- the RestoreRequestInner object itself.
-
hostingEnvironment
Get the hostingEnvironment property: App Service Environment name, if needed (only when restoring an app to an App Service Environment).- Returns:
- the hostingEnvironment value.
-
withHostingEnvironment
Set the hostingEnvironment property: App Service Environment name, if needed (only when restoring an app to an App Service Environment).- Parameters:
hostingEnvironment- the hostingEnvironment value to set.- Returns:
- the RestoreRequestInner 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
Reads an instance of RestoreRequestInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RestoreRequestInner 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 RestoreRequestInner.
-