你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SiteConfig Class

  • java.lang.Object
    • com.microsoft.azure.management.appservice.SiteConfig

public class SiteConfig

Configuration of an App Service app.

Method Summary

Modifier and Type Method and Description
Boolean alwaysOn()

Get the alwaysOn value.

ApiDefinitionInfo apiDefinition()

Get the apiDefinition value.

String appCommandLine()

Get the appCommandLine value.

List<NameValuePair> appSettings()

Get the appSettings value.

Boolean autoHealEnabled()

Get the autoHealEnabled value.

AutoHealRules autoHealRules()

Get the autoHealRules value.

String autoSwapSlotName()

Get the autoSwapSlotName value.

List<ConnStringInfo> connectionStrings()

Get the connectionStrings value.

CorsSettings cors()

Get the cors value.

List<String> defaultDocuments()

Get the defaultDocuments value.

Boolean detailedErrorLoggingEnabled()

Get the detailedErrorLoggingEnabled value.

String documentRoot()

Get the documentRoot value.

Experiments experiments()

Get the experiments value.

List<HandlerMapping> handlerMappings()

Get the handlerMappings value.

Boolean httpLoggingEnabled()

Get the httpLoggingEnabled value.

List<IpSecurityRestriction> ipSecurityRestrictions()

Get the ipSecurityRestrictions value.

String javaContainer()

Get the javaContainer value.

String javaContainerVersion()

Get the javaContainerVersion value.

String javaVersion()

Get the javaVersion value.

SiteLimits limits()

Get the limits value.

String linuxFxVersion()

Get the linuxFxVersion value.

SiteLoadBalancing loadBalancing()

Get the loadBalancing value.

Boolean localMySqlEnabled()

Get the localMySqlEnabled value.

Integer logsDirectorySizeLimit()

Get the logsDirectorySizeLimit value.

SiteMachineKey machineKey()

Get the machineKey value.

ManagedPipelineMode managedPipelineMode()

Get the managedPipelineMode value.

String netFrameworkVersion()

Get the netFrameworkVersion value.

String nodeVersion()

Get the nodeVersion value.

Integer numberOfWorkers()

Get the numberOfWorkers value.

String phpVersion()

Get the phpVersion value.

String publishingUsername()

Get the publishingUsername value.

PushSettingsInner push()

Get the push value.

String pythonVersion()

Get the pythonVersion value.

Boolean remoteDebuggingEnabled()

Get the remoteDebuggingEnabled value.

String remoteDebuggingVersion()

Get the remoteDebuggingVersion value.

Boolean requestTracingEnabled()

Get the requestTracingEnabled value.

DateTime requestTracingExpirationTime()

Get the requestTracingExpirationTime value.

ScmType scmType()

Get the scmType value.

String tracingOptions()

Get the tracingOptions value.

Boolean use32BitWorkerProcess()

Get the use32BitWorkerProcess value.

List<VirtualApplication> virtualApplications()

Get the virtualApplications value.

String vnetName()

Get the vnetName value.

Boolean webSocketsEnabled()

Get the webSocketsEnabled value.

SiteConfig withAlwaysOn(Boolean alwaysOn)

Set the alwaysOn value.

SiteConfig withApiDefinition(ApiDefinitionInfo apiDefinition)

Set the apiDefinition value.

SiteConfig withAppCommandLine(String appCommandLine)

Set the appCommandLine value.

SiteConfig withAppSettings(List<NameValuePair> appSettings)

Set the appSettings value.

SiteConfig withAutoHealEnabled(Boolean autoHealEnabled)

Set the autoHealEnabled value.

SiteConfig withAutoHealRules(AutoHealRules autoHealRules)

Set the autoHealRules value.

SiteConfig withAutoSwapSlotName(String autoSwapSlotName)

Set the autoSwapSlotName value.

SiteConfig withConnectionStrings(List<ConnStringInfo> connectionStrings)

Set the connectionStrings value.

SiteConfig withCors(CorsSettings cors)

Set the cors value.

SiteConfig withDefaultDocuments(List<String> defaultDocuments)

Set the defaultDocuments value.

SiteConfig withDetailedErrorLoggingEnabled(Boolean detailedErrorLoggingEnabled)

Set the detailedErrorLoggingEnabled value.

SiteConfig withDocumentRoot(String documentRoot)

Set the documentRoot value.

SiteConfig withExperiments(Experiments experiments)

Set the experiments value.

SiteConfig withHandlerMappings(List<HandlerMapping> handlerMappings)

Set the handlerMappings value.

SiteConfig withHttpLoggingEnabled(Boolean httpLoggingEnabled)

Set the httpLoggingEnabled value.

SiteConfig withIpSecurityRestrictions(List<IpSecurityRestriction> ipSecurityRestrictions)

Set the ipSecurityRestrictions value.

SiteConfig withJavaContainer(String javaContainer)

Set the javaContainer value.

SiteConfig withJavaContainerVersion(String javaContainerVersion)

Set the javaContainerVersion value.

SiteConfig withJavaVersion(String javaVersion)

Set the javaVersion value.

SiteConfig withLimits(SiteLimits limits)

Set the limits value.

SiteConfig withLinuxFxVersion(String linuxFxVersion)

Set the linuxFxVersion value.

SiteConfig withLoadBalancing(SiteLoadBalancing loadBalancing)

Set the loadBalancing value.

SiteConfig withLocalMySqlEnabled(Boolean localMySqlEnabled)

Set the localMySqlEnabled value.

SiteConfig withLogsDirectorySizeLimit(Integer logsDirectorySizeLimit)

Set the logsDirectorySizeLimit value.

SiteConfig withManagedPipelineMode(ManagedPipelineMode managedPipelineMode)

Set the managedPipelineMode value.

SiteConfig withNetFrameworkVersion(String netFrameworkVersion)

Set the netFrameworkVersion value.

SiteConfig withNodeVersion(String nodeVersion)

Set the nodeVersion value.

SiteConfig withNumberOfWorkers(Integer numberOfWorkers)

Set the numberOfWorkers value.

SiteConfig withPhpVersion(String phpVersion)

Set the phpVersion value.

SiteConfig withPublishingUsername(String publishingUsername)

Set the publishingUsername value.

SiteConfig withPush(PushSettingsInner push)

Set the push value.

SiteConfig withPythonVersion(String pythonVersion)

Set the pythonVersion value.

SiteConfig withRemoteDebuggingEnabled(Boolean remoteDebuggingEnabled)

Set the remoteDebuggingEnabled value.

SiteConfig withRemoteDebuggingVersion(String remoteDebuggingVersion)

Set the remoteDebuggingVersion value.

SiteConfig withRequestTracingEnabled(Boolean requestTracingEnabled)

Set the requestTracingEnabled value.

SiteConfig withRequestTracingExpirationTime(DateTime requestTracingExpirationTime)

Set the requestTracingExpirationTime value.

SiteConfig withScmType(ScmType scmType)

Set the scmType value.

SiteConfig withTracingOptions(String tracingOptions)

Set the tracingOptions value.

SiteConfig withUse32BitWorkerProcess(Boolean use32BitWorkerProcess)

Set the use32BitWorkerProcess value.

SiteConfig withVirtualApplications(List<VirtualApplication> virtualApplications)

Set the virtualApplications value.

SiteConfig withVnetName(String vnetName)

Set the vnetName value.

SiteConfig withWebSocketsEnabled(Boolean webSocketsEnabled)

Set the webSocketsEnabled value.

Method Details

alwaysOn

public Boolean alwaysOn()

Get the alwaysOn value.

Returns:

the alwaysOn value

apiDefinition

public ApiDefinitionInfo apiDefinition()

Get the apiDefinition value.

Returns:

the apiDefinition value

appCommandLine

public String appCommandLine()

Get the appCommandLine value.

Returns:

the appCommandLine value

appSettings

public List appSettings()

Get the appSettings value.

Returns:

the appSettings value

autoHealEnabled

public Boolean autoHealEnabled()

Get the autoHealEnabled value.

Returns:

the autoHealEnabled value

autoHealRules

public AutoHealRules autoHealRules()

Get the autoHealRules value.

Returns:

the autoHealRules value

autoSwapSlotName

public String autoSwapSlotName()

Get the autoSwapSlotName value.

Returns:

the autoSwapSlotName value

connectionStrings

public List connectionStrings()

Get the connectionStrings value.

Returns:

the connectionStrings value

cors

public CorsSettings cors()

Get the cors value.

Returns:

the cors value

defaultDocuments

public List defaultDocuments()

Get the defaultDocuments value.

Returns:

the defaultDocuments value

detailedErrorLoggingEnabled

public Boolean detailedErrorLoggingEnabled()

Get the detailedErrorLoggingEnabled value.

Returns:

the detailedErrorLoggingEnabled value

documentRoot

public String documentRoot()

Get the documentRoot value.

Returns:

the documentRoot value

experiments

public Experiments experiments()

Get the experiments value.

Returns:

the experiments value

handlerMappings

public List handlerMappings()

Get the handlerMappings value.

Returns:

the handlerMappings value

httpLoggingEnabled

public Boolean httpLoggingEnabled()

Get the httpLoggingEnabled value.

Returns:

the httpLoggingEnabled value

ipSecurityRestrictions

public List ipSecurityRestrictions()

Get the ipSecurityRestrictions value.

Returns:

the ipSecurityRestrictions value

javaContainer

public String javaContainer()

Get the javaContainer value.

Returns:

the javaContainer value

javaContainerVersion

public String javaContainerVersion()

Get the javaContainerVersion value.

Returns:

the javaContainerVersion value

javaVersion

public String javaVersion()

Get the javaVersion value.

Returns:

the javaVersion value

limits

public SiteLimits limits()

Get the limits value.

Returns:

the limits value

linuxFxVersion

public String linuxFxVersion()

Get the linuxFxVersion value.

Returns:

the linuxFxVersion value

loadBalancing

public SiteLoadBalancing loadBalancing()

Get the loadBalancing value.

Returns:

the loadBalancing value

localMySqlEnabled

public Boolean localMySqlEnabled()

Get the localMySqlEnabled value.

Returns:

the localMySqlEnabled value

logsDirectorySizeLimit

public Integer logsDirectorySizeLimit()

Get the logsDirectorySizeLimit value.

Returns:

the logsDirectorySizeLimit value

machineKey

public SiteMachineKey machineKey()

Get the machineKey value.

Returns:

the machineKey value

managedPipelineMode

public ManagedPipelineMode managedPipelineMode()

Get the managedPipelineMode value.

Returns:

the managedPipelineMode value

netFrameworkVersion

public String netFrameworkVersion()

Get the netFrameworkVersion value.

Returns:

the netFrameworkVersion value

nodeVersion

public String nodeVersion()

Get the nodeVersion value.

Returns:

the nodeVersion value

numberOfWorkers

public Integer numberOfWorkers()

Get the numberOfWorkers value.

Returns:

the numberOfWorkers value

phpVersion

public String phpVersion()

Get the phpVersion value.

Returns:

the phpVersion value

publishingUsername

public String publishingUsername()

Get the publishingUsername value.

Returns:

the publishingUsername value

push

public PushSettingsInner push()

Get the push value.

Returns:

the push value

pythonVersion

public String pythonVersion()

Get the pythonVersion value.

Returns:

the pythonVersion value

remoteDebuggingEnabled

public Boolean remoteDebuggingEnabled()

Get the remoteDebuggingEnabled value.

Returns:

the remoteDebuggingEnabled value

remoteDebuggingVersion

public String remoteDebuggingVersion()

Get the remoteDebuggingVersion value.

Returns:

the remoteDebuggingVersion value

requestTracingEnabled

public Boolean requestTracingEnabled()

Get the requestTracingEnabled value.

Returns:

the requestTracingEnabled value

requestTracingExpirationTime

public DateTime requestTracingExpirationTime()

Get the requestTracingExpirationTime value.

Returns:

the requestTracingExpirationTime value

scmType

public ScmType scmType()

Get the scmType value.

Returns:

the scmType value

tracingOptions

public String tracingOptions()

Get the tracingOptions value.

Returns:

the tracingOptions value

use32BitWorkerProcess

public Boolean use32BitWorkerProcess()

Get the use32BitWorkerProcess value.

Returns:

the use32BitWorkerProcess value

virtualApplications

public List virtualApplications()

Get the virtualApplications value.

Returns:

the virtualApplications value

vnetName

public String vnetName()

Get the vnetName value.

Returns:

the vnetName value

webSocketsEnabled

public Boolean webSocketsEnabled()

Get the webSocketsEnabled value.

Returns:

the webSocketsEnabled value

withAlwaysOn

public SiteConfig withAlwaysOn(Boolean alwaysOn)

Set the alwaysOn value.

Parameters:

alwaysOn - the alwaysOn value to set

Returns:

the SiteConfig object itself.

withApiDefinition

public SiteConfig withApiDefinition(ApiDefinitionInfo apiDefinition)

Set the apiDefinition value.

Parameters:

apiDefinition - the apiDefinition value to set

Returns:

the SiteConfig object itself.

withAppCommandLine

public SiteConfig withAppCommandLine(String appCommandLine)

Set the appCommandLine value.

Parameters:

appCommandLine - the appCommandLine value to set

Returns:

the SiteConfig object itself.

withAppSettings

public SiteConfig withAppSettings(List appSettings)

Set the appSettings value.

Parameters:

appSettings - the appSettings value to set

Returns:

the SiteConfig object itself.

withAutoHealEnabled

public SiteConfig withAutoHealEnabled(Boolean autoHealEnabled)

Set the autoHealEnabled value.

Parameters:

autoHealEnabled - the autoHealEnabled value to set

Returns:

the SiteConfig object itself.

withAutoHealRules

public SiteConfig withAutoHealRules(AutoHealRules autoHealRules)

Set the autoHealRules value.

Parameters:

autoHealRules - the autoHealRules value to set

Returns:

the SiteConfig object itself.

withAutoSwapSlotName

public SiteConfig withAutoSwapSlotName(String autoSwapSlotName)

Set the autoSwapSlotName value.

Parameters:

autoSwapSlotName - the autoSwapSlotName value to set

Returns:

the SiteConfig object itself.

withConnectionStrings

public SiteConfig withConnectionStrings(List connectionStrings)

Set the connectionStrings value.

Parameters:

connectionStrings - the connectionStrings value to set

Returns:

the SiteConfig object itself.

withCors

public SiteConfig withCors(CorsSettings cors)

Set the cors value.

Parameters:

cors - the cors value to set

Returns:

the SiteConfig object itself.

withDefaultDocuments

public SiteConfig withDefaultDocuments(List defaultDocuments)

Set the defaultDocuments value.

Parameters:

defaultDocuments - the defaultDocuments value to set

Returns:

the SiteConfig object itself.

withDetailedErrorLoggingEnabled

public SiteConfig withDetailedErrorLoggingEnabled(Boolean detailedErrorLoggingEnabled)

Set the detailedErrorLoggingEnabled value.

Parameters:

detailedErrorLoggingEnabled - the detailedErrorLoggingEnabled value to set

Returns:

the SiteConfig object itself.

withDocumentRoot

public SiteConfig withDocumentRoot(String documentRoot)

Set the documentRoot value.

Parameters:

documentRoot - the documentRoot value to set

Returns:

the SiteConfig object itself.

withExperiments

public SiteConfig withExperiments(Experiments experiments)

Set the experiments value.

Parameters:

experiments - the experiments value to set

Returns:

the SiteConfig object itself.

withHandlerMappings

public SiteConfig withHandlerMappings(List handlerMappings)

Set the handlerMappings value.

Parameters:

handlerMappings - the handlerMappings value to set

Returns:

the SiteConfig object itself.

withHttpLoggingEnabled

public SiteConfig withHttpLoggingEnabled(Boolean httpLoggingEnabled)

Set the httpLoggingEnabled value.

Parameters:

httpLoggingEnabled - the httpLoggingEnabled value to set

Returns:

the SiteConfig object itself.

withIpSecurityRestrictions

public SiteConfig withIpSecurityRestrictions(List ipSecurityRestrictions)

Set the ipSecurityRestrictions value.

Parameters:

ipSecurityRestrictions - the ipSecurityRestrictions value to set

Returns:

the SiteConfig object itself.

withJavaContainer

public SiteConfig withJavaContainer(String javaContainer)

Set the javaContainer value.

Parameters:

javaContainer - the javaContainer value to set

Returns:

the SiteConfig object itself.

withJavaContainerVersion

public SiteConfig withJavaContainerVersion(String javaContainerVersion)

Set the javaContainerVersion value.

Parameters:

javaContainerVersion - the javaContainerVersion value to set

Returns:

the SiteConfig object itself.

withJavaVersion

public SiteConfig withJavaVersion(String javaVersion)

Set the javaVersion value.

Parameters:

javaVersion - the javaVersion value to set

Returns:

the SiteConfig object itself.

withLimits

public SiteConfig withLimits(SiteLimits limits)

Set the limits value.

Parameters:

limits - the limits value to set

Returns:

the SiteConfig object itself.

withLinuxFxVersion

public SiteConfig withLinuxFxVersion(String linuxFxVersion)

Set the linuxFxVersion value.

Parameters:

linuxFxVersion - the linuxFxVersion value to set

Returns:

the SiteConfig object itself.

withLoadBalancing

public SiteConfig withLoadBalancing(SiteLoadBalancing loadBalancing)

Set the loadBalancing value.

Parameters:

loadBalancing - the loadBalancing value to set

Returns:

the SiteConfig object itself.

withLocalMySqlEnabled

public SiteConfig withLocalMySqlEnabled(Boolean localMySqlEnabled)

Set the localMySqlEnabled value.

Parameters:

localMySqlEnabled - the localMySqlEnabled value to set

Returns:

the SiteConfig object itself.

withLogsDirectorySizeLimit

public SiteConfig withLogsDirectorySizeLimit(Integer logsDirectorySizeLimit)

Set the logsDirectorySizeLimit value.

Parameters:

logsDirectorySizeLimit - the logsDirectorySizeLimit value to set

Returns:

the SiteConfig object itself.

withManagedPipelineMode

public SiteConfig withManagedPipelineMode(ManagedPipelineMode managedPipelineMode)

Set the managedPipelineMode value.

Parameters:

managedPipelineMode - the managedPipelineMode value to set

Returns:

the SiteConfig object itself.

withNetFrameworkVersion

public SiteConfig withNetFrameworkVersion(String netFrameworkVersion)

Set the netFrameworkVersion value.

Parameters:

netFrameworkVersion - the netFrameworkVersion value to set

Returns:

the SiteConfig object itself.

withNodeVersion

public SiteConfig withNodeVersion(String nodeVersion)

Set the nodeVersion value.

Parameters:

nodeVersion - the nodeVersion value to set

Returns:

the SiteConfig object itself.

withNumberOfWorkers

public SiteConfig withNumberOfWorkers(Integer numberOfWorkers)

Set the numberOfWorkers value.

Parameters:

numberOfWorkers - the numberOfWorkers value to set

Returns:

the SiteConfig object itself.

withPhpVersion

public SiteConfig withPhpVersion(String phpVersion)

Set the phpVersion value.

Parameters:

phpVersion - the phpVersion value to set

Returns:

the SiteConfig object itself.

withPublishingUsername

public SiteConfig withPublishingUsername(String publishingUsername)

Set the publishingUsername value.

Parameters:

publishingUsername - the publishingUsername value to set

Returns:

the SiteConfig object itself.

withPush

public SiteConfig withPush(PushSettingsInner push)

Set the push value.

Parameters:

push - the push value to set

Returns:

the SiteConfig object itself.

withPythonVersion

public SiteConfig withPythonVersion(String pythonVersion)

Set the pythonVersion value.

Parameters:

pythonVersion - the pythonVersion value to set

Returns:

the SiteConfig object itself.

withRemoteDebuggingEnabled

public SiteConfig withRemoteDebuggingEnabled(Boolean remoteDebuggingEnabled)

Set the remoteDebuggingEnabled value.

Parameters:

remoteDebuggingEnabled - the remoteDebuggingEnabled value to set

Returns:

the SiteConfig object itself.

withRemoteDebuggingVersion

public SiteConfig withRemoteDebuggingVersion(String remoteDebuggingVersion)

Set the remoteDebuggingVersion value.

Parameters:

remoteDebuggingVersion - the remoteDebuggingVersion value to set

Returns:

the SiteConfig object itself.

withRequestTracingEnabled

public SiteConfig withRequestTracingEnabled(Boolean requestTracingEnabled)

Set the requestTracingEnabled value.

Parameters:

requestTracingEnabled - the requestTracingEnabled value to set

Returns:

the SiteConfig object itself.

withRequestTracingExpirationTime

public SiteConfig withRequestTracingExpirationTime(DateTime requestTracingExpirationTime)

Set the requestTracingExpirationTime value.

Parameters:

requestTracingExpirationTime - the requestTracingExpirationTime value to set

Returns:

the SiteConfig object itself.

withScmType

public SiteConfig withScmType(ScmType scmType)

Set the scmType value.

Parameters:

scmType - the scmType value to set

Returns:

the SiteConfig object itself.

withTracingOptions

public SiteConfig withTracingOptions(String tracingOptions)

Set the tracingOptions value.

Parameters:

tracingOptions - the tracingOptions value to set

Returns:

the SiteConfig object itself.

withUse32BitWorkerProcess

public SiteConfig withUse32BitWorkerProcess(Boolean use32BitWorkerProcess)

Set the use32BitWorkerProcess value.

Parameters:

use32BitWorkerProcess - the use32BitWorkerProcess value to set

Returns:

the SiteConfig object itself.

withVirtualApplications

public SiteConfig withVirtualApplications(List virtualApplications)

Set the virtualApplications value.

Parameters:

virtualApplications - the virtualApplications value to set

Returns:

the SiteConfig object itself.

withVnetName

public SiteConfig withVnetName(String vnetName)

Set the vnetName value.

Parameters:

vnetName - the vnetName value to set

Returns:

the SiteConfig object itself.

withWebSocketsEnabled

public SiteConfig withWebSocketsEnabled(Boolean webSocketsEnabled)

Set the webSocketsEnabled value.

Parameters:

webSocketsEnabled - the webSocketsEnabled value to set

Returns:

the SiteConfig object itself.

Applies to