Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.appservice.implementation; import java.util.List; import com.microsoft.azure.management.appservice.DatabaseBackupSetting; import com.microsoft.azure.management.appservice.BackupRestoreOperationType; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.management.appservice.ProxyOnlyResource;
Description of a restore request.
/** * Description of a restore request. */
@JsonFlatten public class RestoreRequestInner extends ProxyOnlyResource {
SAS URL to the container.
/** * SAS URL to the container. */
@JsonProperty(value = "properties.storageAccountUrl", required = true) private String storageAccountUrl;
Name of a blob which contains the backup.
/** * Name of a blob which contains the backup. */
@JsonProperty(value = "properties.blobName") private String blobName;
<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.
/** * &lt;code&gt;true&lt;/code&gt; if the restore operation can overwrite * target app; otherwise, &lt;code&gt;false&lt;/code&gt;. * &lt;code&gt;true&lt;/code&gt; is needed if trying to restore over an * existing app. */
@JsonProperty(value = "properties.overwrite", required = true) private boolean overwrite;
Name of an app.
/** * Name of an app. */
@JsonProperty(value = "properties.siteName") private String siteName;
Collection of databases which should be restored. This list has to match the list of databases included in the backup.
/** * Collection of databases which should be restored. This list has to match * the list of databases included in the backup. */
@JsonProperty(value = "properties.databases") private List<DatabaseBackupSetting> databases;
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.
/** * Changes a logic when restoring an app with custom domains. * &lt;code&gt;true&lt;/code&gt; to remove custom domains automatically. If * &lt;code&gt;false&lt;/code&gt;, custom domains are added to * the app's object when it is being restored, but that might fail due to * conflicts during the operation. */
@JsonProperty(value = "properties.ignoreConflictingHostNames") private Boolean ignoreConflictingHostNames;
Ignore the databases and only restore the site content.
/** * Ignore the databases and only restore the site content. */
@JsonProperty(value = "properties.ignoreDatabases") private Boolean ignoreDatabases;
Specify app service plan that will own restored site.
/** * Specify app service plan that will own restored site. */
@JsonProperty(value = "properties.appServicePlan") private String appServicePlan;
Operation type. Possible values include: 'Default', 'Clone', 'Relocation', 'Snapshot', 'CloudFS'.
/** * Operation type. Possible values include: 'Default', 'Clone', * 'Relocation', 'Snapshot', 'CloudFS'. */
@JsonProperty(value = "properties.operationType") private BackupRestoreOperationType operationType;
<code>true</code> if SiteConfig.ConnectionStrings should be set in new app; otherwise, <code>false</code>.
/** * &lt;code&gt;true&lt;/code&gt; if SiteConfig.ConnectionStrings should be * set in new app; otherwise, &lt;code&gt;false&lt;/code&gt;. */
@JsonProperty(value = "properties.adjustConnectionStrings") private Boolean adjustConnectionStrings;
App Service Environment name, if needed (only when restoring an app to an App Service Environment).
/** * App Service Environment name, if needed (only when restoring an app to * an App Service Environment). */
@JsonProperty(value = "properties.hostingEnvironment") private String hostingEnvironment;
Get sAS URL to the container.
Returns:the storageAccountUrl value
/** * Get sAS URL to the container. * * @return the storageAccountUrl value */
public String storageAccountUrl() { return this.storageAccountUrl; }
Set sAS URL to the container.
Params:
  • storageAccountUrl – the storageAccountUrl value to set
Returns:the RestoreRequestInner object itself.
/** * Set sAS URL to the container. * * @param storageAccountUrl the storageAccountUrl value to set * @return the RestoreRequestInner object itself. */
public RestoreRequestInner withStorageAccountUrl(String storageAccountUrl) { this.storageAccountUrl = storageAccountUrl; return this; }
Get name of a blob which contains the backup.
Returns:the blobName value
/** * Get name of a blob which contains the backup. * * @return the blobName value */
public String blobName() { return this.blobName; }
Set name of a blob which contains the backup.
Params:
  • blobName – the blobName value to set
Returns:the RestoreRequestInner object itself.
/** * Set name of a blob which contains the backup. * * @param blobName the blobName value to set * @return the RestoreRequestInner object itself. */
public RestoreRequestInner withBlobName(String blobName) { this.blobName = blobName; return this; }
Get <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
/** * Get &lt;code&gt;true&lt;/code&gt; if the restore operation can overwrite target app; otherwise, &lt;code&gt;false&lt;/code&gt;. &lt;code&gt;true&lt;/code&gt; is needed if trying to restore over an existing app. * * @return the overwrite value */
public boolean overwrite() { return this.overwrite; }
Set <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.
Params:
  • overwrite – the overwrite value to set
Returns:the RestoreRequestInner object itself.
/** * Set &lt;code&gt;true&lt;/code&gt; if the restore operation can overwrite target app; otherwise, &lt;code&gt;false&lt;/code&gt;. &lt;code&gt;true&lt;/code&gt; is needed if trying to restore over an existing app. * * @param overwrite the overwrite value to set * @return the RestoreRequestInner object itself. */
public RestoreRequestInner withOverwrite(boolean overwrite) { this.overwrite = overwrite; return this; }
Get name of an app.
Returns:the siteName value
/** * Get name of an app. * * @return the siteName value */
public String siteName() { return this.siteName; }
Set name of an app.
Params:
  • siteName – the siteName value to set
Returns:the RestoreRequestInner object itself.
/** * Set name of an app. * * @param siteName the siteName value to set * @return the RestoreRequestInner object itself. */
public RestoreRequestInner withSiteName(String siteName) { this.siteName = siteName; return this; }
Get collection of databases which should be restored. This list has to match the list of databases included in the backup.
Returns:the databases value
/** * Get collection of databases which should be restored. This list has to match the list of databases included in the backup. * * @return the databases value */
public List<DatabaseBackupSetting> databases() { return this.databases; }
Set collection of databases which should be restored. This list has to match the list of databases included in the backup.
Params:
  • databases – the databases value to set
Returns:the RestoreRequestInner object itself.
/** * Set collection of databases which should be restored. This list has to match the list of databases included in the backup. * * @param databases the databases value to set * @return the RestoreRequestInner object itself. */
public RestoreRequestInner withDatabases(List<DatabaseBackupSetting> databases) { this.databases = databases; return this; }
Get 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
/** * Get changes a logic when restoring an app with custom domains. &lt;code&gt;true&lt;/code&gt; to remove custom domains automatically. If &lt;code&gt;false&lt;/code&gt;, custom domains are added to the app's object when it is being restored, but that might fail due to conflicts during the operation. * * @return the ignoreConflictingHostNames value */
public Boolean ignoreConflictingHostNames() { return this.ignoreConflictingHostNames; }
Set 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.
Params:
  • ignoreConflictingHostNames – the ignoreConflictingHostNames value to set
Returns:the RestoreRequestInner object itself.
/** * Set changes a logic when restoring an app with custom domains. &lt;code&gt;true&lt;/code&gt; to remove custom domains automatically. If &lt;code&gt;false&lt;/code&gt;, custom domains are added to the app's object when it is being restored, but that might fail due to conflicts during the operation. * * @param ignoreConflictingHostNames the ignoreConflictingHostNames value to set * @return the RestoreRequestInner object itself. */
public RestoreRequestInner withIgnoreConflictingHostNames(Boolean ignoreConflictingHostNames) { this.ignoreConflictingHostNames = ignoreConflictingHostNames; return this; }
Get ignore the databases and only restore the site content.
Returns:the ignoreDatabases value
/** * Get ignore the databases and only restore the site content. * * @return the ignoreDatabases value */
public Boolean ignoreDatabases() { return this.ignoreDatabases; }
Set ignore the databases and only restore the site content.
Params:
  • ignoreDatabases – the ignoreDatabases value to set
Returns:the RestoreRequestInner object itself.
/** * Set ignore the databases and only restore the site content. * * @param ignoreDatabases the ignoreDatabases value to set * @return the RestoreRequestInner object itself. */
public RestoreRequestInner withIgnoreDatabases(Boolean ignoreDatabases) { this.ignoreDatabases = ignoreDatabases; return this; }
Get specify app service plan that will own restored site.
Returns:the appServicePlan value
/** * Get specify app service plan that will own restored site. * * @return the appServicePlan value */
public String appServicePlan() { return this.appServicePlan; }
Set specify app service plan that will own restored site.
Params:
  • appServicePlan – the appServicePlan value to set
Returns:the RestoreRequestInner object itself.
/** * Set specify app service plan that will own restored site. * * @param appServicePlan the appServicePlan value to set * @return the RestoreRequestInner object itself. */
public RestoreRequestInner withAppServicePlan(String appServicePlan) { this.appServicePlan = appServicePlan; return this; }
Get operation type. Possible values include: 'Default', 'Clone', 'Relocation', 'Snapshot', 'CloudFS'.
Returns:the operationType value
/** * Get operation type. Possible values include: 'Default', 'Clone', 'Relocation', 'Snapshot', 'CloudFS'. * * @return the operationType value */
public BackupRestoreOperationType operationType() { return this.operationType; }
Set operation type. Possible values include: 'Default', 'Clone', 'Relocation', 'Snapshot', 'CloudFS'.
Params:
  • operationType – the operationType value to set
Returns:the RestoreRequestInner object itself.
/** * Set operation type. Possible values include: 'Default', 'Clone', 'Relocation', 'Snapshot', 'CloudFS'. * * @param operationType the operationType value to set * @return the RestoreRequestInner object itself. */
public RestoreRequestInner withOperationType(BackupRestoreOperationType operationType) { this.operationType = operationType; return this; }
Get <code>true</code> if SiteConfig.ConnectionStrings should be set in new app; otherwise, <code>false</code>.
Returns:the adjustConnectionStrings value
/** * Get &lt;code&gt;true&lt;/code&gt; if SiteConfig.ConnectionStrings should be set in new app; otherwise, &lt;code&gt;false&lt;/code&gt;. * * @return the adjustConnectionStrings value */
public Boolean adjustConnectionStrings() { return this.adjustConnectionStrings; }
Set <code>true</code> if SiteConfig.ConnectionStrings should be set in new app; otherwise, <code>false</code>.
Params:
  • adjustConnectionStrings – the adjustConnectionStrings value to set
Returns:the RestoreRequestInner object itself.
/** * Set &lt;code&gt;true&lt;/code&gt; if SiteConfig.ConnectionStrings should be set in new app; otherwise, &lt;code&gt;false&lt;/code&gt;. * * @param adjustConnectionStrings the adjustConnectionStrings value to set * @return the RestoreRequestInner object itself. */
public RestoreRequestInner withAdjustConnectionStrings(Boolean adjustConnectionStrings) { this.adjustConnectionStrings = adjustConnectionStrings; return this; }
Get app Service Environment name, if needed (only when restoring an app to an App Service Environment).
Returns:the hostingEnvironment value
/** * Get app Service Environment name, if needed (only when restoring an app to an App Service Environment). * * @return the hostingEnvironment value */
public String hostingEnvironment() { return this.hostingEnvironment; }
Set app Service Environment name, if needed (only when restoring an app to an App Service Environment).
Params:
  • hostingEnvironment – the hostingEnvironment value to set
Returns:the RestoreRequestInner object itself.
/** * Set app Service Environment name, if needed (only when restoring an app to an App Service Environment). * * @param hostingEnvironment the hostingEnvironment value to set * @return the RestoreRequestInner object itself. */
public RestoreRequestInner withHostingEnvironment(String hostingEnvironment) { this.hostingEnvironment = hostingEnvironment; return this; } }