Class SiteConfig
java.lang.Object
com.microsoft.azure.management.appservice.SiteConfig
Configuration of an App Service app.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalwaysOn()
Get <code>true</code> if Always On is enabled; otherwise, <code>false</code>.Get information about the formal API definition for the app.Get azure API management settings linked to the app.Get app command line to launch.Get application settings.Get <code>true</code> if Auto Heal is enabled; otherwise, <code>false</code>.Get auto Heal rules.Get auto-swap slot name.Get connection strings.cors()
Get cross-Origin Resource Sharing (CORS) settings.Get default documents.Get <code>true</code> if detailed error logging is enabled; otherwise, <code>false</code>.Get document root.Get this is work around for polymorphic types.Get state of FTP / FTPS service.Get handler mappings.Get health check path.Get http20Enabled: configures a web site to allow clients to connect over http2.0.Get <code>true</code> if HTTP logging is enabled; otherwise, <code>false</code>.Get iP security restrictions for main.Get java container.Get java container version.Get java version.limits()
Get site limits.Get linux App Framework and version.Get site load balancing.Get <code>true</code> to enable local MySQL; otherwise, <code>false</code>.Get hTTP logs directory size limit.Get site MachineKey.Get managed pipeline mode.Get managed Service Identity Id.Get minTlsVersion: configures the minimum version of TLS required for SSL requests.Get .NET Framework version.Get version of Node.js.Get number of workers.Get version of PHP.Get number of preWarmed instances.Get publishing user name.com.microsoft.azure.management.appservice.implementation.PushSettingsInner
push()
Get push endpoint settings.Get version of Python.Get <code>true</code> if remote debugging is enabled; otherwise, <code>false</code>.Get remote debugging version.Get <code>true</code> if request tracing is enabled; otherwise, <code>false</code>.org.joda.time.DateTime
Get request tracing expiration time.Get iP security restrictions for scm.Get iP security restrictions for scm to use main.scmType()
Get sCM type.Get tracing options.Get <code>true</code> to use 32-bit worker process; otherwise, <code>false</code>.Get virtual applications.vnetName()
Get virtual Network name.Get <code>true</code> if WebSocket is enabled; otherwise, <code>false</code>.Get xenon App Framework and version.withAlwaysOn
(Boolean alwaysOn) Set <code>true</code> if Always On is enabled; otherwise, <code>false</code>.withApiDefinition
(ApiDefinitionInfo apiDefinition) Set information about the formal API definition for the app.withApiManagementConfig
(ApiManagementConfig apiManagementConfig) Set azure API management settings linked to the app.withAppCommandLine
(String appCommandLine) Set app command line to launch.withAppSettings
(List<NameValuePair> appSettings) Set application settings.withAutoHealEnabled
(Boolean autoHealEnabled) Set <code>true</code> if Auto Heal is enabled; otherwise, <code>false</code>.withAutoHealRules
(AutoHealRules autoHealRules) Set auto Heal rules.withAutoSwapSlotName
(String autoSwapSlotName) Set auto-swap slot name.withConnectionStrings
(List<ConnStringInfo> connectionStrings) Set connection strings.withCors
(CorsSettings cors) Set cross-Origin Resource Sharing (CORS) settings.withDefaultDocuments
(List<String> defaultDocuments) Set default documents.withDetailedErrorLoggingEnabled
(Boolean detailedErrorLoggingEnabled) Set <code>true</code> if detailed error logging is enabled; otherwise, <code>false</code>.withDocumentRoot
(String documentRoot) Set document root.withExperiments
(Experiments experiments) Set this is work around for polymorphic types.withFtpsState
(FtpsState ftpsState) Set state of FTP / FTPS service.withHandlerMappings
(List<HandlerMapping> handlerMappings) Set handler mappings.withHealthCheckPath
(String healthCheckPath) Set health check path.withHttp20Enabled
(Boolean http20Enabled) Set http20Enabled: configures a web site to allow clients to connect over http2.0.withHttpLoggingEnabled
(Boolean httpLoggingEnabled) Set <code>true</code> if HTTP logging is enabled; otherwise, <code>false</code>.withIpSecurityRestrictions
(List<IpSecurityRestriction> ipSecurityRestrictions) Set iP security restrictions for main.withJavaContainer
(String javaContainer) Set java container.withJavaContainerVersion
(String javaContainerVersion) Set java container version.withJavaVersion
(String javaVersion) Set java version.withLimits
(SiteLimits limits) Set site limits.withLinuxFxVersion
(String linuxFxVersion) Set linux App Framework and version.withLoadBalancing
(SiteLoadBalancing loadBalancing) Set site load balancing.withLocalMySqlEnabled
(Boolean localMySqlEnabled) Set <code>true</code> to enable local MySQL; otherwise, <code>false</code>.withLogsDirectorySizeLimit
(Integer logsDirectorySizeLimit) Set hTTP logs directory size limit.withManagedPipelineMode
(ManagedPipelineMode managedPipelineMode) Set managed pipeline mode.withManagedServiceIdentityId
(Integer managedServiceIdentityId) Set managed Service Identity Id.withMinTlsVersion
(SupportedTlsVersions minTlsVersion) Set minTlsVersion: configures the minimum version of TLS required for SSL requests.withNetFrameworkVersion
(String netFrameworkVersion) Set .NET Framework version.withNodeVersion
(String nodeVersion) Set version of Node.js.withNumberOfWorkers
(Integer numberOfWorkers) Set number of workers.withPhpVersion
(String phpVersion) Set version of PHP.withPreWarmedInstanceCount
(Integer preWarmedInstanceCount) Set number of preWarmed instances.withPublishingUsername
(String publishingUsername) Set publishing user name.withPush
(com.microsoft.azure.management.appservice.implementation.PushSettingsInner push) Set push endpoint settings.withPythonVersion
(String pythonVersion) Set version of Python.withRemoteDebuggingEnabled
(Boolean remoteDebuggingEnabled) Set <code>true</code> if remote debugging is enabled; otherwise, <code>false</code>.withRemoteDebuggingVersion
(String remoteDebuggingVersion) Set remote debugging version.withRequestTracingEnabled
(Boolean requestTracingEnabled) Set <code>true</code> if request tracing is enabled; otherwise, <code>false</code>.withRequestTracingExpirationTime
(org.joda.time.DateTime requestTracingExpirationTime) Set request tracing expiration time.withScmIpSecurityRestrictions
(List<IpSecurityRestriction> scmIpSecurityRestrictions) Set iP security restrictions for scm.withScmIpSecurityRestrictionsUseMain
(Boolean scmIpSecurityRestrictionsUseMain) Set iP security restrictions for scm to use main.withScmType
(ScmType scmType) Set sCM type.withTracingOptions
(String tracingOptions) Set tracing options.withUse32BitWorkerProcess
(Boolean use32BitWorkerProcess) Set <code>true</code> to use 32-bit worker process; otherwise, <code>false</code>.withVirtualApplications
(List<VirtualApplication> virtualApplications) Set virtual applications.withVnetName
(String vnetName) Set virtual Network name.withWebSocketsEnabled
(Boolean webSocketsEnabled) Set <code>true</code> if WebSocket is enabled; otherwise, <code>false</code>.withWindowsFxVersion
(String windowsFxVersion) Set xenon App Framework and version.withXManagedServiceIdentityId
(Integer xManagedServiceIdentityId) Set explicit Managed Service Identity Id.Get explicit Managed Service Identity Id.
-
Constructor Details
-
SiteConfig
public SiteConfig()
-
-
Method Details
-
numberOfWorkers
Get number of workers.- Returns:
- the numberOfWorkers value
-
withNumberOfWorkers
Set number of workers.- Parameters:
numberOfWorkers
- the numberOfWorkers value to set- Returns:
- the SiteConfig object itself.
-
defaultDocuments
Get default documents.- Returns:
- the defaultDocuments value
-
withDefaultDocuments
Set default documents.- Parameters:
defaultDocuments
- the defaultDocuments value to set- Returns:
- the SiteConfig object itself.
-
netFrameworkVersion
Get .NET Framework version.- Returns:
- the netFrameworkVersion value
-
withNetFrameworkVersion
Set .NET Framework version.- Parameters:
netFrameworkVersion
- the netFrameworkVersion value to set- Returns:
- the SiteConfig object itself.
-
phpVersion
Get version of PHP.- Returns:
- the phpVersion value
-
withPhpVersion
Set version of PHP.- Parameters:
phpVersion
- the phpVersion value to set- Returns:
- the SiteConfig object itself.
-
pythonVersion
Get version of Python.- Returns:
- the pythonVersion value
-
withPythonVersion
Set version of Python.- Parameters:
pythonVersion
- the pythonVersion value to set- Returns:
- the SiteConfig object itself.
-
nodeVersion
Get version of Node.js.- Returns:
- the nodeVersion value
-
withNodeVersion
Set version of Node.js.- Parameters:
nodeVersion
- the nodeVersion value to set- Returns:
- the SiteConfig object itself.
-
linuxFxVersion
Get linux App Framework and version.- Returns:
- the linuxFxVersion value
-
withLinuxFxVersion
Set linux App Framework and version.- Parameters:
linuxFxVersion
- the linuxFxVersion value to set- Returns:
- the SiteConfig object itself.
-
windowsFxVersion
Get xenon App Framework and version.- Returns:
- the windowsFxVersion value
-
withWindowsFxVersion
Set xenon App Framework and version.- Parameters:
windowsFxVersion
- the windowsFxVersion value to set- Returns:
- the SiteConfig object itself.
-
requestTracingEnabled
Get <code>true</code> if request tracing is enabled; otherwise, <code>false</code>.- Returns:
- the requestTracingEnabled value
-
withRequestTracingEnabled
Set <code>true</code> if request tracing is enabled; otherwise, <code>false</code>.- Parameters:
requestTracingEnabled
- the requestTracingEnabled value to set- Returns:
- the SiteConfig object itself.
-
requestTracingExpirationTime
public org.joda.time.DateTime requestTracingExpirationTime()Get request tracing expiration time.- Returns:
- the requestTracingExpirationTime value
-
withRequestTracingExpirationTime
public SiteConfig withRequestTracingExpirationTime(org.joda.time.DateTime requestTracingExpirationTime) Set request tracing expiration time.- Parameters:
requestTracingExpirationTime
- the requestTracingExpirationTime value to set- Returns:
- the SiteConfig object itself.
-
remoteDebuggingEnabled
Get <code>true</code> if remote debugging is enabled; otherwise, <code>false</code>.- Returns:
- the remoteDebuggingEnabled value
-
withRemoteDebuggingEnabled
Set <code>true</code> if remote debugging is enabled; otherwise, <code>false</code>.- Parameters:
remoteDebuggingEnabled
- the remoteDebuggingEnabled value to set- Returns:
- the SiteConfig object itself.
-
remoteDebuggingVersion
Get remote debugging version.- Returns:
- the remoteDebuggingVersion value
-
withRemoteDebuggingVersion
Set remote debugging version.- Parameters:
remoteDebuggingVersion
- the remoteDebuggingVersion value to set- Returns:
- the SiteConfig object itself.
-
httpLoggingEnabled
Get <code>true</code> if HTTP logging is enabled; otherwise, <code>false</code>.- Returns:
- the httpLoggingEnabled value
-
withHttpLoggingEnabled
Set <code>true</code> if HTTP logging is enabled; otherwise, <code>false</code>.- Parameters:
httpLoggingEnabled
- the httpLoggingEnabled value to set- Returns:
- the SiteConfig object itself.
-
logsDirectorySizeLimit
Get hTTP logs directory size limit.- Returns:
- the logsDirectorySizeLimit value
-
withLogsDirectorySizeLimit
Set hTTP logs directory size limit.- Parameters:
logsDirectorySizeLimit
- the logsDirectorySizeLimit value to set- Returns:
- the SiteConfig object itself.
-
detailedErrorLoggingEnabled
Get <code>true</code> if detailed error logging is enabled; otherwise, <code>false</code>.- Returns:
- the detailedErrorLoggingEnabled value
-
withDetailedErrorLoggingEnabled
Set <code>true</code> if detailed error logging is enabled; otherwise, <code>false</code>.- Parameters:
detailedErrorLoggingEnabled
- the detailedErrorLoggingEnabled value to set- Returns:
- the SiteConfig object itself.
-
publishingUsername
Get publishing user name.- Returns:
- the publishingUsername value
-
withPublishingUsername
Set publishing user name.- Parameters:
publishingUsername
- the publishingUsername value to set- Returns:
- the SiteConfig object itself.
-
appSettings
Get application settings.- Returns:
- the appSettings value
-
withAppSettings
Set application settings.- Parameters:
appSettings
- the appSettings value to set- Returns:
- the SiteConfig object itself.
-
connectionStrings
Get connection strings.- Returns:
- the connectionStrings value
-
withConnectionStrings
Set connection strings.- Parameters:
connectionStrings
- the connectionStrings value to set- Returns:
- the SiteConfig object itself.
-
machineKey
Get site MachineKey.- Returns:
- the machineKey value
-
handlerMappings
Get handler mappings.- Returns:
- the handlerMappings value
-
withHandlerMappings
Set handler mappings.- Parameters:
handlerMappings
- the handlerMappings value to set- Returns:
- the SiteConfig object itself.
-
documentRoot
Get document root.- Returns:
- the documentRoot value
-
withDocumentRoot
Set document root.- Parameters:
documentRoot
- the documentRoot value to set- Returns:
- the SiteConfig object itself.
-
scmType
Get sCM type. Possible values include: 'None', 'Dropbox', 'Tfs', 'LocalGit', 'GitHub', 'CodePlexGit', 'CodePlexHg', 'BitbucketGit', 'BitbucketHg', 'ExternalGit', 'ExternalHg', 'OneDrive', 'VSO', 'VSTSRM'.- Returns:
- the scmType value
-
withScmType
Set sCM type. Possible values include: 'None', 'Dropbox', 'Tfs', 'LocalGit', 'GitHub', 'CodePlexGit', 'CodePlexHg', 'BitbucketGit', 'BitbucketHg', 'ExternalGit', 'ExternalHg', 'OneDrive', 'VSO', 'VSTSRM'.- Parameters:
scmType
- the scmType value to set- Returns:
- the SiteConfig object itself.
-
use32BitWorkerProcess
Get <code>true</code> to use 32-bit worker process; otherwise, <code>false</code>.- Returns:
- the use32BitWorkerProcess value
-
withUse32BitWorkerProcess
Set <code>true</code> to use 32-bit worker process; otherwise, <code>false</code>.- Parameters:
use32BitWorkerProcess
- the use32BitWorkerProcess value to set- Returns:
- the SiteConfig object itself.
-
webSocketsEnabled
Get <code>true</code> if WebSocket is enabled; otherwise, <code>false</code>.- Returns:
- the webSocketsEnabled value
-
withWebSocketsEnabled
Set <code>true</code> if WebSocket is enabled; otherwise, <code>false</code>.- Parameters:
webSocketsEnabled
- the webSocketsEnabled value to set- Returns:
- the SiteConfig object itself.
-
alwaysOn
Get <code>true</code> if Always On is enabled; otherwise, <code>false</code>.- Returns:
- the alwaysOn value
-
withAlwaysOn
Set <code>true</code> if Always On is enabled; otherwise, <code>false</code>.- Parameters:
alwaysOn
- the alwaysOn value to set- Returns:
- the SiteConfig object itself.
-
javaVersion
Get java version.- Returns:
- the javaVersion value
-
withJavaVersion
Set java version.- Parameters:
javaVersion
- the javaVersion value to set- Returns:
- the SiteConfig object itself.
-
javaContainer
Get java container.- Returns:
- the javaContainer value
-
withJavaContainer
Set java container.- Parameters:
javaContainer
- the javaContainer value to set- Returns:
- the SiteConfig object itself.
-
javaContainerVersion
Get java container version.- Returns:
- the javaContainerVersion value
-
withJavaContainerVersion
Set java container version.- Parameters:
javaContainerVersion
- the javaContainerVersion value to set- Returns:
- the SiteConfig object itself.
-
appCommandLine
Get app command line to launch.- Returns:
- the appCommandLine value
-
withAppCommandLine
Set app command line to launch.- Parameters:
appCommandLine
- the appCommandLine value to set- Returns:
- the SiteConfig object itself.
-
managedPipelineMode
Get managed pipeline mode. Possible values include: 'Integrated', 'Classic'.- Returns:
- the managedPipelineMode value
-
withManagedPipelineMode
Set managed pipeline mode. Possible values include: 'Integrated', 'Classic'.- Parameters:
managedPipelineMode
- the managedPipelineMode value to set- Returns:
- the SiteConfig object itself.
-
virtualApplications
Get virtual applications.- Returns:
- the virtualApplications value
-
withVirtualApplications
Set virtual applications.- Parameters:
virtualApplications
- the virtualApplications value to set- Returns:
- the SiteConfig object itself.
-
loadBalancing
Get site load balancing. Possible values include: 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime', 'WeightedTotalTraffic', 'RequestHash'.- Returns:
- the loadBalancing value
-
withLoadBalancing
Set site load balancing. Possible values include: 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime', 'WeightedTotalTraffic', 'RequestHash'.- Parameters:
loadBalancing
- the loadBalancing value to set- Returns:
- the SiteConfig object itself.
-
experiments
Get this is work around for polymorphic types.- Returns:
- the experiments value
-
withExperiments
Set this is work around for polymorphic types.- Parameters:
experiments
- the experiments value to set- Returns:
- the SiteConfig object itself.
-
limits
Get site limits.- Returns:
- the limits value
-
withLimits
Set site limits.- Parameters:
limits
- the limits value to set- Returns:
- the SiteConfig object itself.
-
autoHealEnabled
Get <code>true</code> if Auto Heal is enabled; otherwise, <code>false</code>.- Returns:
- the autoHealEnabled value
-
withAutoHealEnabled
Set <code>true</code> if Auto Heal is enabled; otherwise, <code>false</code>.- Parameters:
autoHealEnabled
- the autoHealEnabled value to set- Returns:
- the SiteConfig object itself.
-
autoHealRules
Get auto Heal rules.- Returns:
- the autoHealRules value
-
withAutoHealRules
Set auto Heal rules.- Parameters:
autoHealRules
- the autoHealRules value to set- Returns:
- the SiteConfig object itself.
-
tracingOptions
Get tracing options.- Returns:
- the tracingOptions value
-
withTracingOptions
Set tracing options.- Parameters:
tracingOptions
- the tracingOptions value to set- Returns:
- the SiteConfig object itself.
-
vnetName
Get virtual Network name.- Returns:
- the vnetName value
-
withVnetName
Set virtual Network name.- Parameters:
vnetName
- the vnetName value to set- Returns:
- the SiteConfig object itself.
-
cors
Get cross-Origin Resource Sharing (CORS) settings.- Returns:
- the cors value
-
withCors
Set cross-Origin Resource Sharing (CORS) settings.- Parameters:
cors
- the cors value to set- Returns:
- the SiteConfig object itself.
-
push
public com.microsoft.azure.management.appservice.implementation.PushSettingsInner push()Get push endpoint settings.- Returns:
- the push value
-
withPush
public SiteConfig withPush(com.microsoft.azure.management.appservice.implementation.PushSettingsInner push) Set push endpoint settings.- Parameters:
push
- the push value to set- Returns:
- the SiteConfig object itself.
-
apiDefinition
Get information about the formal API definition for the app.- Returns:
- the apiDefinition value
-
withApiDefinition
Set information about the formal API definition for the app.- Parameters:
apiDefinition
- the apiDefinition value to set- Returns:
- the SiteConfig object itself.
-
apiManagementConfig
Get azure API management settings linked to the app.- Returns:
- the apiManagementConfig value
-
withApiManagementConfig
Set azure API management settings linked to the app.- Parameters:
apiManagementConfig
- the apiManagementConfig value to set- Returns:
- the SiteConfig object itself.
-
autoSwapSlotName
Get auto-swap slot name.- Returns:
- the autoSwapSlotName value
-
withAutoSwapSlotName
Set auto-swap slot name.- Parameters:
autoSwapSlotName
- the autoSwapSlotName value to set- Returns:
- the SiteConfig object itself.
-
localMySqlEnabled
Get <code>true</code> to enable local MySQL; otherwise, <code>false</code>.- Returns:
- the localMySqlEnabled value
-
withLocalMySqlEnabled
Set <code>true</code> to enable local MySQL; otherwise, <code>false</code>.- Parameters:
localMySqlEnabled
- the localMySqlEnabled value to set- Returns:
- the SiteConfig object itself.
-
managedServiceIdentityId
Get managed Service Identity Id.- Returns:
- the managedServiceIdentityId value
-
withManagedServiceIdentityId
Set managed Service Identity Id.- Parameters:
managedServiceIdentityId
- the managedServiceIdentityId value to set- Returns:
- the SiteConfig object itself.
-
xManagedServiceIdentityId
Get explicit Managed Service Identity Id.- Returns:
- the xManagedServiceIdentityId value
-
withXManagedServiceIdentityId
Set explicit Managed Service Identity Id.- Parameters:
xManagedServiceIdentityId
- the xManagedServiceIdentityId value to set- Returns:
- the SiteConfig object itself.
-
ipSecurityRestrictions
Get iP security restrictions for main.- Returns:
- the ipSecurityRestrictions value
-
withIpSecurityRestrictions
Set iP security restrictions for main.- Parameters:
ipSecurityRestrictions
- the ipSecurityRestrictions value to set- Returns:
- the SiteConfig object itself.
-
scmIpSecurityRestrictions
Get iP security restrictions for scm.- Returns:
- the scmIpSecurityRestrictions value
-
withScmIpSecurityRestrictions
public SiteConfig withScmIpSecurityRestrictions(List<IpSecurityRestriction> scmIpSecurityRestrictions) Set iP security restrictions for scm.- Parameters:
scmIpSecurityRestrictions
- the scmIpSecurityRestrictions value to set- Returns:
- the SiteConfig object itself.
-
scmIpSecurityRestrictionsUseMain
Get iP security restrictions for scm to use main.- Returns:
- the scmIpSecurityRestrictionsUseMain value
-
withScmIpSecurityRestrictionsUseMain
Set iP security restrictions for scm to use main.- Parameters:
scmIpSecurityRestrictionsUseMain
- the scmIpSecurityRestrictionsUseMain value to set- Returns:
- the SiteConfig object itself.
-
http20Enabled
Get http20Enabled: configures a web site to allow clients to connect over http2.0.- Returns:
- the http20Enabled value
-
withHttp20Enabled
Set http20Enabled: configures a web site to allow clients to connect over http2.0.- Parameters:
http20Enabled
- the http20Enabled value to set- Returns:
- the SiteConfig object itself.
-
minTlsVersion
Get minTlsVersion: configures the minimum version of TLS required for SSL requests. Possible values include: '1.0', '1.1', '1.2'.- Returns:
- the minTlsVersion value
-
withMinTlsVersion
Set minTlsVersion: configures the minimum version of TLS required for SSL requests. Possible values include: '1.0', '1.1', '1.2'.- Parameters:
minTlsVersion
- the minTlsVersion value to set- Returns:
- the SiteConfig object itself.
-
ftpsState
Get state of FTP / FTPS service. Possible values include: 'AllAllowed', 'FtpsOnly', 'Disabled'.- Returns:
- the ftpsState value
-
withFtpsState
Set state of FTP / FTPS service. Possible values include: 'AllAllowed', 'FtpsOnly', 'Disabled'.- Parameters:
ftpsState
- the ftpsState value to set- Returns:
- the SiteConfig object itself.
-
preWarmedInstanceCount
Get number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans.- Returns:
- the preWarmedInstanceCount value
-
withPreWarmedInstanceCount
Set number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans.- Parameters:
preWarmedInstanceCount
- the preWarmedInstanceCount value to set- Returns:
- the SiteConfig object itself.
-
healthCheckPath
Get health check path.- Returns:
- the healthCheckPath value
-
withHealthCheckPath
Set health check path.- Parameters:
healthCheckPath
- the healthCheckPath value to set- Returns:
- the SiteConfig object itself.
-