CloningInfo Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. CloningInfo
- com.
Implements
public final class CloningInfo
implements JsonSerializable<CloningInfo>
Information needed for cloning operation.
Constructor Summary
Constructor | Description |
---|---|
CloningInfo() |
Creates an instance of Cloning |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
appSettingsOverrides()
Get the app |
Boolean |
cloneCustomHostNames()
Get the clone |
Boolean |
cloneSourceControl()
Get the clone |
Boolean |
configureLoadBalancing()
Get the configure |
UUID |
correlationId()
Get the correlation |
static
Cloning |
fromJson(JsonReader jsonReader)
Reads an instance of Cloning |
String |
hostingEnvironment()
Get the hosting |
Boolean |
overwrite()
Get the overwrite property: |
String |
sourceWebAppId()
Get the source |
String |
sourceWebAppLocation()
Get the source |
Json |
toJson(JsonWriter jsonWriter) |
String |
trafficManagerProfileId()
Get the traffic |
String |
trafficManagerProfileName()
Get the traffic |
void |
validate()
Validates the instance. |
Cloning |
withAppSettingsOverrides(Map<String,String> appSettingsOverrides)
Set the app |
Cloning |
withCloneCustomHostNames(Boolean cloneCustomHostNames)
Set the clone |
Cloning |
withCloneSourceControl(Boolean cloneSourceControl)
Set the clone |
Cloning |
withConfigureLoadBalancing(Boolean configureLoadBalancing)
Set the configure |
Cloning |
withCorrelationId(UUID correlationId)
Set the correlation |
Cloning |
withHostingEnvironment(String hostingEnvironment)
Set the hosting |
Cloning |
withOverwrite(Boolean overwrite)
Set the overwrite property: |
Cloning |
withSourceWebAppId(String sourceWebAppId)
Set the source |
Cloning |
withSourceWebAppLocation(String sourceWebAppLocation)
Set the source |
Cloning |
withTrafficManagerProfileId(String trafficManagerProfileId)
Set the traffic |
Cloning |
withTrafficManagerProfileName(String trafficManagerProfileName)
Set the traffic |
Methods inherited from java.lang.Object
Constructor Details
CloningInfo
public CloningInfo()
Creates an instance of CloningInfo class.
Method Details
appSettingsOverrides
public Map
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:
cloneCustomHostNames
public Boolean cloneCustomHostNames()
Get the cloneCustomHostNames property: true
to clone custom hostnames from source app; otherwise, false
.
Returns:
cloneSourceControl
public Boolean cloneSourceControl()
Get the cloneSourceControl property: true
to clone source control from source app; otherwise, false
.
Returns:
configureLoadBalancing
public Boolean configureLoadBalancing()
Get the configureLoadBalancing property: true
to configure load balancing for source and destination app.
Returns:
correlationId
public UUID correlationId()
Get the correlationId property: Correlation ID of cloning operation. This ID ties multiple cloning operations together to use the same snapshot.
Returns:
fromJson
public static CloningInfo fromJson(JsonReader jsonReader)
Reads an instance of CloningInfo from the JsonReader.
Parameters:
Returns:
Throws:
hostingEnvironment
public String hostingEnvironment()
Get the hostingEnvironment property: App Service Environment.
Returns:
overwrite
public Boolean overwrite()
Get the overwrite property: true
to overwrite destination app; otherwise, false
.
Returns:
sourceWebAppId
public String 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:
sourceWebAppLocation
public String sourceWebAppLocation()
Get the sourceWebAppLocation property: Location of source app ex: West US or North Europe.
Returns:
toJson
trafficManagerProfileId
public String 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:
trafficManagerProfileName
public String 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:
validate
public void validate()
Validates the instance.
withAppSettingsOverrides
public CloningInfo withAppSettingsOverrides(Map
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:
Returns:
withCloneCustomHostNames
public CloningInfo withCloneCustomHostNames(Boolean cloneCustomHostNames)
Set the cloneCustomHostNames property: true
to clone custom hostnames from source app; otherwise, false
.
Parameters:
Returns:
withCloneSourceControl
public CloningInfo withCloneSourceControl(Boolean cloneSourceControl)
Set the cloneSourceControl property: true
to clone source control from source app; otherwise, false
.
Parameters:
Returns:
withConfigureLoadBalancing
public CloningInfo withConfigureLoadBalancing(Boolean configureLoadBalancing)
Set the configureLoadBalancing property: true
to configure load balancing for source and destination app.
Parameters:
Returns:
withCorrelationId
public CloningInfo withCorrelationId(UUID correlationId)
Set the correlationId property: Correlation ID of cloning operation. This ID ties multiple cloning operations together to use the same snapshot.
Parameters:
Returns:
withHostingEnvironment
public CloningInfo withHostingEnvironment(String hostingEnvironment)
Set the hostingEnvironment property: App Service Environment.
Parameters:
Returns:
withOverwrite
public CloningInfo withOverwrite(Boolean overwrite)
Set the overwrite property: true
to overwrite destination app; otherwise, false
.
Parameters:
Returns:
withSourceWebAppId
public CloningInfo withSourceWebAppId(String sourceWebAppId)
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:
Returns:
withSourceWebAppLocation
public CloningInfo withSourceWebAppLocation(String sourceWebAppLocation)
Set the sourceWebAppLocation property: Location of source app ex: West US or North Europe.
Parameters:
Returns:
withTrafficManagerProfileId
public CloningInfo withTrafficManagerProfileId(String trafficManagerProfileId)
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:
Returns:
withTrafficManagerProfileName
public CloningInfo withTrafficManagerProfileName(String trafficManagerProfileName)
Set the trafficManagerProfileName property: Name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does not already exist.
Parameters:
Returns:
Applies to
Azure SDK for Java