RestoreRequestInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. appservice. models. ProxyOnlyResource - com.
azure. resourcemanager. appservice. fluent. models. RestoreRequestInner
- com.
- com.
- com.
public final class RestoreRequestInner
extends ProxyOnlyResource
Description of a restore request.
Constructor Summary
Constructor | Description |
---|---|
RestoreRequestInner() |
Creates an instance of Restore |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
adjustConnectionStrings()
Get the adjust |
String |
appServicePlan()
Get the app |
String |
blobName()
Get the blob |
List<Database |
databases()
Get the databases property: Collection of databases which should be restored. |
String |
hostingEnvironment()
Get the hosting |
Boolean |
ignoreConflictingHostNames()
Get the ignore |
Boolean |
ignoreDatabases()
Get the ignore |
Backup |
operationType()
Get the operation |
Boolean |
overwrite()
Get the overwrite property: |
String |
siteName()
Get the site |
String |
storageAccountUrl()
Get the storage |
void |
validate()
Validates the instance. |
Restore |
withAdjustConnectionStrings(Boolean adjustConnectionStrings)
Set the adjust |
Restore |
withAppServicePlan(String appServicePlan)
Set the app |
Restore |
withBlobName(String blobName)
Set the blob |
Restore |
withDatabases(List<DatabaseBackupSetting> databases)
Set the databases property: Collection of databases which should be restored. |
Restore |
withHostingEnvironment(String hostingEnvironment)
Set the hosting |
Restore |
withIgnoreConflictingHostNames(Boolean ignoreConflictingHostNames)
Set the ignore |
Restore |
withIgnoreDatabases(Boolean ignoreDatabases)
Set the ignore |
Restore |
withKind(String kind)
Set the kind property: Kind of resource. |
Restore |
withOperationType(BackupRestoreOperationType operationType)
Set the operation |
Restore |
withOverwrite(Boolean overwrite)
Set the overwrite property: |
Restore |
withSiteName(String siteName)
Set the site |
Restore |
withStorageAccountUrl(String storageAccountUrl)
Set the storage |
Methods inherited from ProxyResource
Methods inherited from ProxyOnlyResource
Methods inherited from java.lang.Object
Constructor Details
RestoreRequestInner
public RestoreRequestInner()
Creates an instance of RestoreRequestInner class.
Method Details
adjustConnectionStrings
public Boolean adjustConnectionStrings()
Get the adjustConnectionStrings property: true
if SiteConfig.ConnectionStrings should be set in new app; otherwise, false
.
Returns:
appServicePlan
public String appServicePlan()
Get the appServicePlan property: Specify app service plan that will own restored site.
Returns:
blobName
public String blobName()
Get the blobName property: Name of a blob which contains the backup.
Returns:
databases
public List
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:
hostingEnvironment
public String hostingEnvironment()
Get the hostingEnvironment property: App Service Environment name, if needed (only when restoring an app to an App Service Environment).
Returns:
ignoreConflictingHostNames
public Boolean ignoreConflictingHostNames()
Get the ignoreConflictingHostNames property: Changes a logic when restoring an app with custom domains. true
to remove custom domains automatically. If false
, 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:
ignoreDatabases
public Boolean ignoreDatabases()
Get the ignoreDatabases property: Ignore the databases and only restore the site content.
Returns:
operationType
public BackupRestoreOperationType operationType()
Get the operationType property: Operation type.
Returns:
overwrite
public Boolean overwrite()
Get the overwrite property: true
if the restore operation can overwrite target app; otherwise, false
. true
is needed if trying to restore over an existing app.
Returns:
siteName
public String siteName()
Get the siteName property: Name of an app.
Returns:
storageAccountUrl
public String storageAccountUrl()
Get the storageAccountUrl property: SAS URL to the container.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
RestoreRequestInner.validate()withAdjustConnectionStrings
public RestoreRequestInner withAdjustConnectionStrings(Boolean adjustConnectionStrings)
Set the adjustConnectionStrings property: true
if SiteConfig.ConnectionStrings should be set in new app; otherwise, false
.
Parameters:
Returns:
withAppServicePlan
public RestoreRequestInner withAppServicePlan(String appServicePlan)
Set the appServicePlan property: Specify app service plan that will own restored site.
Parameters:
Returns:
withBlobName
public RestoreRequestInner withBlobName(String blobName)
Set the blobName property: Name of a blob which contains the backup.
Parameters:
Returns:
withDatabases
public RestoreRequestInner withDatabases(List
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:
Returns:
withHostingEnvironment
public RestoreRequestInner withHostingEnvironment(String hostingEnvironment)
Set the hostingEnvironment property: App Service Environment name, if needed (only when restoring an app to an App Service Environment).
Parameters:
Returns:
withIgnoreConflictingHostNames
public RestoreRequestInner withIgnoreConflictingHostNames(Boolean ignoreConflictingHostNames)
Set the ignoreConflictingHostNames property: Changes a logic when restoring an app with custom domains. true
to remove custom domains automatically. If false
, 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:
Returns:
withIgnoreDatabases
public RestoreRequestInner withIgnoreDatabases(Boolean ignoreDatabases)
Set the ignoreDatabases property: Ignore the databases and only restore the site content.
Parameters:
Returns:
withKind
public RestoreRequestInner withKind(String kind)
Set the kind property: Kind of resource.
Overrides:
RestoreRequestInner.withKind(String kind)Parameters:
withOperationType
public RestoreRequestInner withOperationType(BackupRestoreOperationType operationType)
Set the operationType property: Operation type.
Parameters:
Returns:
withOverwrite
public RestoreRequestInner withOverwrite(Boolean overwrite)
Set the overwrite property: true
if the restore operation can overwrite target app; otherwise, false
. true
is needed if trying to restore over an existing app.
Parameters:
Returns:
withSiteName
public RestoreRequestInner withSiteName(String siteName)
Set the siteName property: Name of an app.
Parameters:
Returns:
withStorageAccountUrl
public RestoreRequestInner withStorageAccountUrl(String storageAccountUrl)
Set the storageAccountUrl property: SAS URL to the container.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for