Class CloningInfo
java.lang.Object
com.microsoft.azure.management.appservice.CloningInfo
Information needed for cloning operation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet application setting overrides for cloned app.Get <code>true</code> to clone custom hostnames from source app; otherwise, <code>false</code>.Get <code>true</code> to clone source control from source app; otherwise, <code>false</code>.Get <code>true</code> to configure load balancing for source and destination app.Get correlation ID of cloning operation.Get app Service Environment.Get <code>true</code> to overwrite destination app; otherwise, <code>false</code>.Get aRM resource ID of the source app.Get location of source app ex: West US or North Europe.Get aRM resource ID of the Traffic Manager profile to use, if it exists.Get name of Traffic Manager profile to create.withAppSettingsOverrides
(Map<String, String> appSettingsOverrides) Set application setting overrides for cloned app.withCloneCustomHostNames
(Boolean cloneCustomHostNames) Set <code>true</code> to clone custom hostnames from source app; otherwise, <code>false</code>.withCloneSourceControl
(Boolean cloneSourceControl) Set <code>true</code> to clone source control from source app; otherwise, <code>false</code>.withConfigureLoadBalancing
(Boolean configureLoadBalancing) Set <code>true</code> to configure load balancing for source and destination app.withCorrelationId
(UUID correlationId) Set correlation ID of cloning operation.withHostingEnvironment
(String hostingEnvironment) Set app Service Environment.withOverwrite
(Boolean overwrite) Set <code>true</code> to overwrite destination app; otherwise, <code>false</code>.withSourceWebAppId
(String sourceWebAppId) Set aRM resource ID of the source app.withSourceWebAppLocation
(String sourceWebAppLocation) Set location of source app ex: West US or North Europe.withTrafficManagerProfileId
(String trafficManagerProfileId) Set aRM resource ID of the Traffic Manager profile to use, if it exists.withTrafficManagerProfileName
(String trafficManagerProfileName) Set name of Traffic Manager profile to create.
-
Constructor Details
-
CloningInfo
public CloningInfo()
-
-
Method Details
-
correlationId
Get correlation ID of cloning operation. This ID ties multiple cloning operations together to use the same snapshot.- Returns:
- the correlationId value
-
withCorrelationId
Set correlation ID of cloning operation. This ID ties multiple cloning operations together to use the same snapshot.- Parameters:
correlationId
- the correlationId value to set- Returns:
- the CloningInfo object itself.
-
overwrite
Get <code>true</code> to overwrite destination app; otherwise, <code>false</code>.- Returns:
- the overwrite value
-
withOverwrite
Set <code>true</code> to overwrite destination app; otherwise, <code>false</code>.- Parameters:
overwrite
- the overwrite value to set- Returns:
- the CloningInfo object itself.
-
cloneCustomHostNames
Get <code>true</code> to clone custom hostnames from source app; otherwise, <code>false</code>.- Returns:
- the cloneCustomHostNames value
-
withCloneCustomHostNames
Set <code>true</code> to clone custom hostnames from source app; otherwise, <code>false</code>.- Parameters:
cloneCustomHostNames
- the cloneCustomHostNames value to set- Returns:
- the CloningInfo object itself.
-
cloneSourceControl
Get <code>true</code> to clone source control from source app; otherwise, <code>false</code>.- Returns:
- the cloneSourceControl value
-
withCloneSourceControl
Set <code>true</code> to clone source control from source app; otherwise, <code>false</code>.- Parameters:
cloneSourceControl
- the cloneSourceControl value to set- Returns:
- the CloningInfo object itself.
-
sourceWebAppId
Get aRM resource ID of the source app. App resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} for production slots and /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} for other slots.- Returns:
- the sourceWebAppId value
-
withSourceWebAppId
Set aRM resource ID of the source app. App resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} for production slots and /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} for other slots.- Parameters:
sourceWebAppId
- the sourceWebAppId value to set- Returns:
- the CloningInfo object itself.
-
sourceWebAppLocation
Get location of source app ex: West US or North Europe.- Returns:
- the sourceWebAppLocation value
-
withSourceWebAppLocation
Set location of source app ex: West US or North Europe.- Parameters:
sourceWebAppLocation
- the sourceWebAppLocation value to set- Returns:
- the CloningInfo object itself.
-
hostingEnvironment
Get app Service Environment.- Returns:
- the hostingEnvironment value
-
withHostingEnvironment
Set app Service Environment.- Parameters:
hostingEnvironment
- the hostingEnvironment value to set- Returns:
- the CloningInfo object itself.
-
appSettingsOverrides
Get application setting overrides for cloned app. If specified, these settings override the settings cloned from source app. Otherwise, application settings from source app are retained.- Returns:
- the appSettingsOverrides value
-
withAppSettingsOverrides
Set application setting overrides for cloned app. If specified, these settings override the settings cloned from source app. Otherwise, application settings from source app are retained.- Parameters:
appSettingsOverrides
- the appSettingsOverrides value to set- Returns:
- the CloningInfo object itself.
-
configureLoadBalancing
Get <code>true</code> to configure load balancing for source and destination app.- Returns:
- the configureLoadBalancing value
-
withConfigureLoadBalancing
Set <code>true</code> to configure load balancing for source and destination app.- Parameters:
configureLoadBalancing
- the configureLoadBalancing value to set- Returns:
- the CloningInfo object itself.
-
trafficManagerProfileId
Get aRM resource ID of the Traffic Manager profile to use, if it exists. Traffic Manager resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}.- Returns:
- the trafficManagerProfileId value
-
withTrafficManagerProfileId
Set aRM resource ID of the Traffic Manager profile to use, if it exists. Traffic Manager resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}.- Parameters:
trafficManagerProfileId
- the trafficManagerProfileId value to set- Returns:
- the CloningInfo object itself.
-
trafficManagerProfileName
Get name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does not already exist.- Returns:
- the trafficManagerProfileName value
-
withTrafficManagerProfileName
Set name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does not already exist.- Parameters:
trafficManagerProfileName
- the trafficManagerProfileName value to set- Returns:
- the CloningInfo object itself.
-