Class CloningInfo
java.lang.Object
com.azure.resourcemanager.appservice.models.CloningInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CloningInfo>
public final class CloningInfo
extends Object
implements com.azure.json.JsonSerializable<CloningInfo>
Information needed for cloning operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the appSettingsOverrides property: Application setting overrides for cloned app.Get the cloneCustomHostNames property: <code>true</code> to clone custom hostnames from source app; otherwise, <code>false</code>.Get the cloneSourceControl property: <code>true</code> to clone source control from source app; otherwise, <code>false</code>.Get the configureLoadBalancing property: <code>true</code> to configure load balancing for source and destination app.Get the correlationId property: Correlation ID of cloning operation.static CloningInfo
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CloningInfo from the JsonReader.Get the hostingEnvironment property: App Service Environment.Get the overwrite property: <code>true</code> to overwrite destination app; otherwise, <code>false</code>.Get the sourceWebAppId property: ARM resource ID of the source app.Get the sourceWebAppLocation property: Location of source app ex: West US or North Europe.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the trafficManagerProfileId property: ARM resource ID of the Traffic Manager profile to use, if it exists.Get the trafficManagerProfileName property: Name of Traffic Manager profile to create.void
validate()
Validates the instance.withAppSettingsOverrides
(Map<String, String> appSettingsOverrides) Set the appSettingsOverrides property: Application setting overrides for cloned app.withCloneCustomHostNames
(Boolean cloneCustomHostNames) Set the cloneCustomHostNames property: <code>true</code> to clone custom hostnames from source app; otherwise, <code>false</code>.withCloneSourceControl
(Boolean cloneSourceControl) Set the cloneSourceControl property: <code>true</code> to clone source control from source app; otherwise, <code>false</code>.withConfigureLoadBalancing
(Boolean configureLoadBalancing) Set the configureLoadBalancing property: <code>true</code> to configure load balancing for source and destination app.withCorrelationId
(UUID correlationId) Set the correlationId property: Correlation ID of cloning operation.withHostingEnvironment
(String hostingEnvironment) Set the hostingEnvironment property: App Service Environment.withOverwrite
(Boolean overwrite) Set the overwrite property: <code>true</code> to overwrite destination app; otherwise, <code>false</code>.withSourceWebAppId
(String sourceWebAppId) Set the sourceWebAppId property: ARM resource ID of the source app.withSourceWebAppLocation
(String sourceWebAppLocation) Set the sourceWebAppLocation property: Location of source app ex: West US or North Europe.withTrafficManagerProfileId
(String trafficManagerProfileId) Set the trafficManagerProfileId property: ARM resource ID of the Traffic Manager profile to use, if it exists.withTrafficManagerProfileName
(String trafficManagerProfileName) Set the trafficManagerProfileName property: Name of Traffic Manager profile to create.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CloningInfo
public CloningInfo()Creates an instance of CloningInfo class.
-
-
Method Details
-
correlationId
Get the correlationId property: Correlation ID of cloning operation. This ID ties multiple cloning operations together to use the same snapshot.- Returns:
- the correlationId value.
-
withCorrelationId
Set the correlationId property: 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 the overwrite property: <code>true</code> to overwrite destination app; otherwise, <code>false</code>.- Returns:
- the overwrite value.
-
withOverwrite
Set the overwrite property: <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 the cloneCustomHostNames property: <code>true</code> to clone custom hostnames from source app; otherwise, <code>false</code>.- Returns:
- the cloneCustomHostNames value.
-
withCloneCustomHostNames
Set the cloneCustomHostNames property: <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 the cloneSourceControl property: <code>true</code> to clone source control from source app; otherwise, <code>false</code>.- Returns:
- the cloneSourceControl value.
-
withCloneSourceControl
Set the cloneSourceControl property: <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 the sourceWebAppId property: 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 the sourceWebAppId property: 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 the sourceWebAppLocation property: Location of source app ex: West US or North Europe.- Returns:
- the sourceWebAppLocation value.
-
withSourceWebAppLocation
Set the sourceWebAppLocation property: Location of source app ex: West US or North Europe.- Parameters:
sourceWebAppLocation
- the sourceWebAppLocation value to set.- Returns:
- the CloningInfo object itself.
-
hostingEnvironment
Get the hostingEnvironment property: App Service Environment.- Returns:
- the hostingEnvironment value.
-
withHostingEnvironment
Set the hostingEnvironment property: App Service Environment.- Parameters:
hostingEnvironment
- the hostingEnvironment value to set.- Returns:
- the CloningInfo object itself.
-
appSettingsOverrides
Get the appSettingsOverrides property: 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 the appSettingsOverrides property: 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 the configureLoadBalancing property: <code>true</code> to configure load balancing for source and destination app.- Returns:
- the configureLoadBalancing value.
-
withConfigureLoadBalancing
Set the configureLoadBalancing property: <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 the trafficManagerProfileId property: 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 the trafficManagerProfileId property: 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 the trafficManagerProfileName property: 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 the trafficManagerProfileName property: 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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<CloningInfo>
- Throws:
IOException
-
fromJson
Reads an instance of CloningInfo from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of CloningInfo if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the CloningInfo.
-