RestoreRequestInner Class

public final class RestoreRequestInner
extends ProxyOnlyResource

Description of a restore request.

Constructor Summary

Constructor Description
RestoreRequestInner()

Creates an instance of RestoreRequestInner class.

Method Summary

Modifier and Type Method and Description
Boolean adjustConnectionStrings()

Get the adjustConnectionStrings property: true if SiteConfig.ConnectionStrings should be set in new app; otherwise, false.

String appServicePlan()

Get the appServicePlan property: Specify app service plan that will own restored site.

String blobName()

Get the blobName property: Name of a blob which contains the backup.

List<DatabaseBackupSetting> databases()

Get the databases property: Collection of databases which should be restored.

String hostingEnvironment()

Get the hostingEnvironment property: App Service Environment name, if needed (only when restoring an app to an App Service Environment).

Boolean ignoreConflictingHostNames()

Get the ignoreConflictingHostNames property: Changes a logic when restoring an app with custom domains.

Boolean ignoreDatabases()

Get the ignoreDatabases property: Ignore the databases and only restore the site content.

BackupRestoreOperationType operationType()

Get the operationType property: Operation type.

Boolean overwrite()

Get the overwrite property: true if the restore operation can overwrite target app; otherwise, false.

String siteName()

Get the siteName property: Name of an app.

String storageAccountUrl()

Get the storageAccountUrl property: SAS URL to the container.

void validate()

Validates the instance.

RestoreRequestInner withAdjustConnectionStrings(Boolean adjustConnectionStrings)

Set the adjustConnectionStrings property: true if SiteConfig.ConnectionStrings should be set in new app; otherwise, false.

RestoreRequestInner withAppServicePlan(String appServicePlan)

Set the appServicePlan property: Specify app service plan that will own restored site.

RestoreRequestInner withBlobName(String blobName)

Set the blobName property: Name of a blob which contains the backup.

RestoreRequestInner withDatabases(List<DatabaseBackupSetting> databases)

Set the databases property: Collection of databases which should be restored.

RestoreRequestInner withHostingEnvironment(String hostingEnvironment)

Set the hostingEnvironment property: App Service Environment name, if needed (only when restoring an app to an App Service Environment).

RestoreRequestInner withIgnoreConflictingHostNames(Boolean ignoreConflictingHostNames)

Set the ignoreConflictingHostNames property: Changes a logic when restoring an app with custom domains.

RestoreRequestInner withIgnoreDatabases(Boolean ignoreDatabases)

Set the ignoreDatabases property: Ignore the databases and only restore the site content.

RestoreRequestInner withKind(String kind)

Set the kind property: Kind of resource.

RestoreRequestInner withOperationType(BackupRestoreOperationType operationType)

Set the operationType property: Operation type.

RestoreRequestInner withOverwrite(Boolean overwrite)

Set the overwrite property: true if the restore operation can overwrite target app; otherwise, false.

RestoreRequestInner withSiteName(String siteName)

Set the siteName property: Name of an app.

RestoreRequestInner withStorageAccountUrl(String storageAccountUrl)

Set the storageAccountUrl property: SAS URL to the container.

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:

the adjustConnectionStrings value.

appServicePlan

public String appServicePlan()

Get the appServicePlan property: Specify app service plan that will own restored site.

Returns:

the appServicePlan value.

blobName

public String blobName()

Get the blobName property: Name of a blob which contains the backup.

Returns:

the blobName value.

databases

public List 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.

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:

the hostingEnvironment value.

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:

the ignoreConflictingHostNames value.

ignoreDatabases

public Boolean ignoreDatabases()

Get the ignoreDatabases property: Ignore the databases and only restore the site content.

Returns:

the ignoreDatabases value.

operationType

public BackupRestoreOperationType operationType()

Get the operationType property: Operation type.

Returns:

the operationType value.

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:

the overwrite value.

siteName

public String siteName()

Get the siteName property: Name of an app.

Returns:

the siteName value.

storageAccountUrl

public String storageAccountUrl()

Get the storageAccountUrl property: SAS URL to the container.

Returns:

the storageAccountUrl value.

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:

adjustConnectionStrings - the adjustConnectionStrings value to set.

Returns:

the RestoreRequestInner object itself.

withAppServicePlan

public RestoreRequestInner withAppServicePlan(String appServicePlan)

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.

withBlobName

public RestoreRequestInner withBlobName(String blobName)

Set the blobName property: Name of a blob which contains the backup.

Parameters:

blobName - the blobName value to set.

Returns:

the RestoreRequestInner object itself.

withDatabases

public RestoreRequestInner withDatabases(List databases)

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.

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:

hostingEnvironment - the hostingEnvironment value to set.

Returns:

the RestoreRequestInner object itself.

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:

ignoreConflictingHostNames - the ignoreConflictingHostNames value to set.

Returns:

the RestoreRequestInner object itself.

withIgnoreDatabases

public RestoreRequestInner withIgnoreDatabases(Boolean ignoreDatabases)

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.

withKind

public RestoreRequestInner withKind(String kind)

Set the kind property: Kind of resource.

Overrides:

RestoreRequestInner.withKind(String kind)

Parameters:

kind

withOperationType

public RestoreRequestInner withOperationType(BackupRestoreOperationType operationType)

Set the operationType property: Operation type.

Parameters:

operationType - the operationType value to set.

Returns:

the RestoreRequestInner object itself.

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:

overwrite - the overwrite value to set.

Returns:

the RestoreRequestInner object itself.

withSiteName

public RestoreRequestInner withSiteName(String siteName)

Set the siteName property: Name of an app.

Parameters:

siteName - the siteName value to set.

Returns:

the RestoreRequestInner object itself.

withStorageAccountUrl

public RestoreRequestInner withStorageAccountUrl(String storageAccountUrl)

Set the storageAccountUrl property: SAS URL to the container.

Parameters:

storageAccountUrl - the storageAccountUrl value to set.

Returns:

the RestoreRequestInner object itself.

Applies to