Class RestoreRequestProperties
- java.lang.Object
-
- com.azure.resourcemanager.appservice.fluent.models.RestoreRequestProperties
-
public final class RestoreRequestProperties extends Object
RestoreRequest resource specific properties.
-
-
Constructor Summary
Constructors Constructor Description RestoreRequestProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanadjustConnectionStrings()Get the adjustConnectionStrings property: <code>true</code> if SiteConfig.ConnectionStrings should be set in new app; otherwise, <code>false</code>.StringappServicePlan()Get the appServicePlan property: Specify app service plan that will own restored site.StringblobName()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.StringhostingEnvironment()Get the hostingEnvironment property: App Service Environment name, if needed (only when restoring an app to an App Service Environment).BooleanignoreConflictingHostNames()Get the ignoreConflictingHostNames property: Changes a logic when restoring an app with custom domains.BooleanignoreDatabases()Get the ignoreDatabases property: Ignore the databases and only restore the site content.BackupRestoreOperationTypeoperationType()Get the operationType property: Operation type.booleanoverwrite()Get the overwrite property: <code>true</code> if the restore operation can overwrite target app; otherwise, <code>false</code>.StringsiteName()Get the siteName property: Name of an app.StringstorageAccountUrl()Get the storageAccountUrl property: SAS URL to the container.voidvalidate()Validates the instance.RestoreRequestPropertieswithAdjustConnectionStrings(Boolean adjustConnectionStrings)Set the adjustConnectionStrings property: <code>true</code> if SiteConfig.ConnectionStrings should be set in new app; otherwise, <code>false</code>.RestoreRequestPropertieswithAppServicePlan(String appServicePlan)Set the appServicePlan property: Specify app service plan that will own restored site.RestoreRequestPropertieswithBlobName(String blobName)Set the blobName property: Name of a blob which contains the backup.RestoreRequestPropertieswithDatabases(List<DatabaseBackupSetting> databases)Set the databases property: Collection of databases which should be restored.RestoreRequestPropertieswithHostingEnvironment(String hostingEnvironment)Set the hostingEnvironment property: App Service Environment name, if needed (only when restoring an app to an App Service Environment).RestoreRequestPropertieswithIgnoreConflictingHostNames(Boolean ignoreConflictingHostNames)Set the ignoreConflictingHostNames property: Changes a logic when restoring an app with custom domains.RestoreRequestPropertieswithIgnoreDatabases(Boolean ignoreDatabases)Set the ignoreDatabases property: Ignore the databases and only restore the site content.RestoreRequestPropertieswithOperationType(BackupRestoreOperationType operationType)Set the operationType property: Operation type.RestoreRequestPropertieswithOverwrite(boolean overwrite)Set the overwrite property: <code>true</code> if the restore operation can overwrite target app; otherwise, <code>false</code>.RestoreRequestPropertieswithSiteName(String siteName)Set the siteName property: Name of an app.RestoreRequestPropertieswithStorageAccountUrl(String storageAccountUrl)Set the storageAccountUrl property: SAS URL to the container.
-
-
-
Method Detail
-
storageAccountUrl
public String storageAccountUrl()
Get the storageAccountUrl property: SAS URL to the container.- Returns:
- the storageAccountUrl value.
-
withStorageAccountUrl
public RestoreRequestProperties withStorageAccountUrl(String storageAccountUrl)
Set the storageAccountUrl property: SAS URL to the container.- Parameters:
storageAccountUrl- the storageAccountUrl value to set.- Returns:
- the RestoreRequestProperties object itself.
-
blobName
public String blobName()
Get the blobName property: Name of a blob which contains the backup.- Returns:
- the blobName value.
-
withBlobName
public RestoreRequestProperties withBlobName(String blobName)
Set the blobName property: Name of a blob which contains the backup.- Parameters:
blobName- the blobName value to set.- Returns:
- the RestoreRequestProperties object itself.
-
overwrite
public boolean 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
public RestoreRequestProperties withOverwrite(boolean overwrite)
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 RestoreRequestProperties object itself.
-
siteName
public String siteName()
Get the siteName property: Name of an app.- Returns:
- the siteName value.
-
withSiteName
public RestoreRequestProperties withSiteName(String siteName)
Set the siteName property: Name of an app.- Parameters:
siteName- the siteName value to set.- Returns:
- the RestoreRequestProperties object itself.
-
databases
public List<DatabaseBackupSetting> 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
public RestoreRequestProperties withDatabases(List<DatabaseBackupSetting> 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 RestoreRequestProperties object itself.
-
ignoreConflictingHostNames
public Boolean 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
public RestoreRequestProperties withIgnoreConflictingHostNames(Boolean ignoreConflictingHostNames)
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 RestoreRequestProperties object itself.
-
ignoreDatabases
public Boolean ignoreDatabases()
Get the ignoreDatabases property: Ignore the databases and only restore the site content.- Returns:
- the ignoreDatabases value.
-
withIgnoreDatabases
public RestoreRequestProperties 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 RestoreRequestProperties object itself.
-
appServicePlan
public String appServicePlan()
Get the appServicePlan property: Specify app service plan that will own restored site.- Returns:
- the appServicePlan value.
-
withAppServicePlan
public RestoreRequestProperties 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 RestoreRequestProperties object itself.
-
operationType
public BackupRestoreOperationType operationType()
Get the operationType property: Operation type.- Returns:
- the operationType value.
-
withOperationType
public RestoreRequestProperties withOperationType(BackupRestoreOperationType operationType)
Set the operationType property: Operation type.- Parameters:
operationType- the operationType value to set.- Returns:
- the RestoreRequestProperties object itself.
-
adjustConnectionStrings
public Boolean 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
public RestoreRequestProperties withAdjustConnectionStrings(Boolean adjustConnectionStrings)
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 RestoreRequestProperties object itself.
-
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.
-
withHostingEnvironment
public RestoreRequestProperties 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 RestoreRequestProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-