Udostępnij za pośrednictwem


CloningInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.CloningInfo

Implements

public final class CloningInfo
implements JsonSerializable<CloningInfo>

Information needed for cloning operation.

Constructor Summary

Constructor Description
CloningInfo()

Creates an instance of CloningInfo class.

Method Summary

Modifier and Type Method and Description
Map<String,String> appSettingsOverrides()

Get the appSettingsOverrides property: Application setting overrides for cloned app.

Boolean cloneCustomHostNames()

Get the cloneCustomHostNames property: true to clone custom hostnames from source app; otherwise, false.

Boolean cloneSourceControl()

Get the cloneSourceControl property: true to clone source control from source app; otherwise, false.

Boolean configureLoadBalancing()

Get the configureLoadBalancing property: true to configure load balancing for source and destination app.

UUID correlationId()

Get the correlationId property: Correlation ID of cloning operation.

static CloningInfo fromJson(JsonReader jsonReader)

Reads an instance of CloningInfo from the JsonReader.

String hostingEnvironment()

Get the hostingEnvironment property: App Service Environment.

Boolean overwrite()

Get the overwrite property: true to overwrite destination app; otherwise, false.

String sourceWebAppId()

Get the sourceWebAppId property: ARM resource ID of the source app.

String sourceWebAppLocation()

Get the sourceWebAppLocation property: Location of source app ex: West US or North Europe.

JsonWriter toJson(JsonWriter jsonWriter)
String trafficManagerProfileId()

Get the trafficManagerProfileId property: ARM resource ID of the Traffic Manager profile to use, if it exists.

String trafficManagerProfileName()

Get the trafficManagerProfileName property: Name of Traffic Manager profile to create.

void validate()

Validates the instance.

CloningInfo withAppSettingsOverrides(Map<String,String> appSettingsOverrides)

Set the appSettingsOverrides property: Application setting overrides for cloned app.

CloningInfo withCloneCustomHostNames(Boolean cloneCustomHostNames)

Set the cloneCustomHostNames property: true to clone custom hostnames from source app; otherwise, false.

CloningInfo withCloneSourceControl(Boolean cloneSourceControl)

Set the cloneSourceControl property: true to clone source control from source app; otherwise, false.

CloningInfo withConfigureLoadBalancing(Boolean configureLoadBalancing)

Set the configureLoadBalancing property: true to configure load balancing for source and destination app.

CloningInfo withCorrelationId(UUID correlationId)

Set the correlationId property: Correlation ID of cloning operation.

CloningInfo withHostingEnvironment(String hostingEnvironment)

Set the hostingEnvironment property: App Service Environment.

CloningInfo withOverwrite(Boolean overwrite)

Set the overwrite property: true to overwrite destination app; otherwise, false.

CloningInfo withSourceWebAppId(String sourceWebAppId)

Set the sourceWebAppId property: ARM resource ID of the source app.

CloningInfo withSourceWebAppLocation(String sourceWebAppLocation)

Set the sourceWebAppLocation property: Location of source app ex: West US or North Europe.

CloningInfo withTrafficManagerProfileId(String trafficManagerProfileId)

Set the trafficManagerProfileId property: ARM resource ID of the Traffic Manager profile to use, if it exists.

CloningInfo withTrafficManagerProfileName(String trafficManagerProfileName)

Set the trafficManagerProfileName property: Name of Traffic Manager profile to create.

Methods inherited from java.lang.Object

Constructor Details

CloningInfo

public CloningInfo()

Creates an instance of CloningInfo class.

Method Details

appSettingsOverrides

public Map<String,String> 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.

cloneCustomHostNames

public Boolean cloneCustomHostNames()

Get the cloneCustomHostNames property: true to clone custom hostnames from source app; otherwise, false.

Returns:

the cloneCustomHostNames value.

cloneSourceControl

public Boolean cloneSourceControl()

Get the cloneSourceControl property: true to clone source control from source app; otherwise, false.

Returns:

the cloneSourceControl value.

configureLoadBalancing

public Boolean configureLoadBalancing()

Get the configureLoadBalancing property: true to configure load balancing for source and destination app.

Returns:

the configureLoadBalancing value.

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:

the correlationId value.

fromJson

public static CloningInfo fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

hostingEnvironment

public String hostingEnvironment()

Get the hostingEnvironment property: App Service Environment.

Returns:

the hostingEnvironment value.

overwrite

public Boolean overwrite()

Get the overwrite property: true to overwrite destination app; otherwise, false.

Returns:

the overwrite value.

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:

the sourceWebAppId value.

sourceWebAppLocation

public String sourceWebAppLocation()

Get the sourceWebAppLocation property: Location of source app ex: West US or North Europe.

Returns:

the sourceWebAppLocation value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

the trafficManagerProfileId value.

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:

the trafficManagerProfileName value.

validate

public void validate()

Validates the instance.

withAppSettingsOverrides

public CloningInfo withAppSettingsOverrides(Map<String,String> appSettingsOverrides)

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.

withCloneCustomHostNames

public CloningInfo withCloneCustomHostNames(Boolean cloneCustomHostNames)

Set the cloneCustomHostNames property: true to clone custom hostnames from source app; otherwise, false.

Parameters:

cloneCustomHostNames - the cloneCustomHostNames value to set.

Returns:

the CloningInfo object itself.

withCloneSourceControl

public CloningInfo withCloneSourceControl(Boolean cloneSourceControl)

Set the cloneSourceControl property: true to clone source control from source app; otherwise, false.

Parameters:

cloneSourceControl - the cloneSourceControl value to set.

Returns:

the CloningInfo object itself.

withConfigureLoadBalancing

public CloningInfo withConfigureLoadBalancing(Boolean configureLoadBalancing)

Set the configureLoadBalancing property: true to configure load balancing for source and destination app.

Parameters:

configureLoadBalancing - the configureLoadBalancing value to set.

Returns:

the CloningInfo object itself.

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:

correlationId - the correlationId value to set.

Returns:

the CloningInfo object itself.

withHostingEnvironment

public CloningInfo withHostingEnvironment(String hostingEnvironment)

Set the hostingEnvironment property: App Service Environment.

Parameters:

hostingEnvironment - the hostingEnvironment value to set.

Returns:

the CloningInfo object itself.

withOverwrite

public CloningInfo withOverwrite(Boolean overwrite)

Set the overwrite property: true to overwrite destination app; otherwise, false.

Parameters:

overwrite - the overwrite value to set.

Returns:

the CloningInfo object itself.

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:

sourceWebAppId - the sourceWebAppId value to set.

Returns:

the CloningInfo object itself.

withSourceWebAppLocation

public CloningInfo withSourceWebAppLocation(String sourceWebAppLocation)

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.

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:

trafficManagerProfileId - the trafficManagerProfileId value to set.

Returns:

the CloningInfo object itself.

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:

trafficManagerProfileName - the trafficManagerProfileName value to set.

Returns:

the CloningInfo object itself.

Applies to