Class SiteConfig

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

public class SiteConfig extends Object
Configuration of an App Service app.
  • Constructor Details

    • SiteConfig

      public SiteConfig()
  • Method Details

    • numberOfWorkers

      public Integer numberOfWorkers()
      Get number of workers.
      Returns:
      the numberOfWorkers value
    • withNumberOfWorkers

      public SiteConfig withNumberOfWorkers(Integer numberOfWorkers)
      Set number of workers.
      Parameters:
      numberOfWorkers - the numberOfWorkers value to set
      Returns:
      the SiteConfig object itself.
    • defaultDocuments

      public List<String> defaultDocuments()
      Get default documents.
      Returns:
      the defaultDocuments value
    • withDefaultDocuments

      public SiteConfig withDefaultDocuments(List<String> defaultDocuments)
      Set default documents.
      Parameters:
      defaultDocuments - the defaultDocuments value to set
      Returns:
      the SiteConfig object itself.
    • netFrameworkVersion

      public String netFrameworkVersion()
      Get .NET Framework version.
      Returns:
      the netFrameworkVersion value
    • withNetFrameworkVersion

      public SiteConfig withNetFrameworkVersion(String netFrameworkVersion)
      Set .NET Framework version.
      Parameters:
      netFrameworkVersion - the netFrameworkVersion value to set
      Returns:
      the SiteConfig object itself.
    • phpVersion

      public String phpVersion()
      Get version of PHP.
      Returns:
      the phpVersion value
    • withPhpVersion

      public SiteConfig withPhpVersion(String phpVersion)
      Set version of PHP.
      Parameters:
      phpVersion - the phpVersion value to set
      Returns:
      the SiteConfig object itself.
    • pythonVersion

      public String pythonVersion()
      Get version of Python.
      Returns:
      the pythonVersion value
    • withPythonVersion

      public SiteConfig withPythonVersion(String pythonVersion)
      Set version of Python.
      Parameters:
      pythonVersion - the pythonVersion value to set
      Returns:
      the SiteConfig object itself.
    • nodeVersion

      public String nodeVersion()
      Get version of Node.js.
      Returns:
      the nodeVersion value
    • withNodeVersion

      public SiteConfig withNodeVersion(String nodeVersion)
      Set version of Node.js.
      Parameters:
      nodeVersion - the nodeVersion value to set
      Returns:
      the SiteConfig object itself.
    • linuxFxVersion

      public String linuxFxVersion()
      Get linux App Framework and version.
      Returns:
      the linuxFxVersion value
    • withLinuxFxVersion

      public SiteConfig withLinuxFxVersion(String linuxFxVersion)
      Set linux App Framework and version.
      Parameters:
      linuxFxVersion - the linuxFxVersion value to set
      Returns:
      the SiteConfig object itself.
    • windowsFxVersion

      public String windowsFxVersion()
      Get xenon App Framework and version.
      Returns:
      the windowsFxVersion value
    • withWindowsFxVersion

      public SiteConfig withWindowsFxVersion(String windowsFxVersion)
      Set xenon App Framework and version.
      Parameters:
      windowsFxVersion - the windowsFxVersion value to set
      Returns:
      the SiteConfig object itself.
    • requestTracingEnabled

      public Boolean requestTracingEnabled()
      Get <code>true</code> if request tracing is enabled; otherwise, <code>false</code>.
      Returns:
      the requestTracingEnabled value
    • withRequestTracingEnabled

      public SiteConfig withRequestTracingEnabled(Boolean requestTracingEnabled)
      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

      public Boolean remoteDebuggingEnabled()
      Get <code>true</code> if remote debugging is enabled; otherwise, <code>false</code>.
      Returns:
      the remoteDebuggingEnabled value
    • withRemoteDebuggingEnabled

      public SiteConfig withRemoteDebuggingEnabled(Boolean remoteDebuggingEnabled)
      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

      public String remoteDebuggingVersion()
      Get remote debugging version.
      Returns:
      the remoteDebuggingVersion value
    • withRemoteDebuggingVersion

      public SiteConfig withRemoteDebuggingVersion(String remoteDebuggingVersion)
      Set remote debugging version.
      Parameters:
      remoteDebuggingVersion - the remoteDebuggingVersion value to set
      Returns:
      the SiteConfig object itself.
    • httpLoggingEnabled

      public Boolean httpLoggingEnabled()
      Get <code>true</code> if HTTP logging is enabled; otherwise, <code>false</code>.
      Returns:
      the httpLoggingEnabled value
    • withHttpLoggingEnabled

      public SiteConfig withHttpLoggingEnabled(Boolean httpLoggingEnabled)
      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

      public Integer logsDirectorySizeLimit()
      Get hTTP logs directory size limit.
      Returns:
      the logsDirectorySizeLimit value
    • withLogsDirectorySizeLimit

      public SiteConfig withLogsDirectorySizeLimit(Integer logsDirectorySizeLimit)
      Set hTTP logs directory size limit.
      Parameters:
      logsDirectorySizeLimit - the logsDirectorySizeLimit value to set
      Returns:
      the SiteConfig object itself.
    • detailedErrorLoggingEnabled

      public Boolean detailedErrorLoggingEnabled()
      Get <code>true</code> if detailed error logging is enabled; otherwise, <code>false</code>.
      Returns:
      the detailedErrorLoggingEnabled value
    • withDetailedErrorLoggingEnabled

      public SiteConfig withDetailedErrorLoggingEnabled(Boolean detailedErrorLoggingEnabled)
      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

      public String publishingUsername()
      Get publishing user name.
      Returns:
      the publishingUsername value
    • withPublishingUsername

      public SiteConfig withPublishingUsername(String publishingUsername)
      Set publishing user name.
      Parameters:
      publishingUsername - the publishingUsername value to set
      Returns:
      the SiteConfig object itself.
    • appSettings

      public List<NameValuePair> appSettings()
      Get application settings.
      Returns:
      the appSettings value
    • withAppSettings

      public SiteConfig withAppSettings(List<NameValuePair> appSettings)
      Set application settings.
      Parameters:
      appSettings - the appSettings value to set
      Returns:
      the SiteConfig object itself.
    • connectionStrings

      public List<ConnStringInfo> connectionStrings()
      Get connection strings.
      Returns:
      the connectionStrings value
    • withConnectionStrings

      public SiteConfig withConnectionStrings(List<ConnStringInfo> connectionStrings)
      Set connection strings.
      Parameters:
      connectionStrings - the connectionStrings value to set
      Returns:
      the SiteConfig object itself.
    • machineKey

      public SiteMachineKey machineKey()
      Get site MachineKey.
      Returns:
      the machineKey value
    • handlerMappings

      public List<HandlerMapping> handlerMappings()
      Get handler mappings.
      Returns:
      the handlerMappings value
    • withHandlerMappings

      public SiteConfig withHandlerMappings(List<HandlerMapping> handlerMappings)
      Set handler mappings.
      Parameters:
      handlerMappings - the handlerMappings value to set
      Returns:
      the SiteConfig object itself.
    • documentRoot

      public String documentRoot()
      Get document root.
      Returns:
      the documentRoot value
    • withDocumentRoot

      public SiteConfig withDocumentRoot(String documentRoot)
      Set document root.
      Parameters:
      documentRoot - the documentRoot value to set
      Returns:
      the SiteConfig object itself.
    • scmType

      public ScmType 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

      public SiteConfig withScmType(ScmType scmType)
      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

      public Boolean use32BitWorkerProcess()
      Get <code>true</code> to use 32-bit worker process; otherwise, <code>false</code>.
      Returns:
      the use32BitWorkerProcess value
    • withUse32BitWorkerProcess

      public SiteConfig withUse32BitWorkerProcess(Boolean use32BitWorkerProcess)
      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

      public Boolean webSocketsEnabled()
      Get <code>true</code> if WebSocket is enabled; otherwise, <code>false</code>.
      Returns:
      the webSocketsEnabled value
    • withWebSocketsEnabled

      public SiteConfig withWebSocketsEnabled(Boolean webSocketsEnabled)
      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

      public Boolean alwaysOn()
      Get <code>true</code> if Always On is enabled; otherwise, <code>false</code>.
      Returns:
      the alwaysOn value
    • withAlwaysOn

      public SiteConfig withAlwaysOn(Boolean alwaysOn)
      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

      public String javaVersion()
      Get java version.
      Returns:
      the javaVersion value
    • withJavaVersion

      public SiteConfig withJavaVersion(String javaVersion)
      Set java version.
      Parameters:
      javaVersion - the javaVersion value to set
      Returns:
      the SiteConfig object itself.
    • javaContainer

      public String javaContainer()
      Get java container.
      Returns:
      the javaContainer value
    • withJavaContainer

      public SiteConfig withJavaContainer(String javaContainer)
      Set java container.
      Parameters:
      javaContainer - the javaContainer value to set
      Returns:
      the SiteConfig object itself.
    • javaContainerVersion

      public String javaContainerVersion()
      Get java container version.
      Returns:
      the javaContainerVersion value
    • withJavaContainerVersion

      public SiteConfig withJavaContainerVersion(String javaContainerVersion)
      Set java container version.
      Parameters:
      javaContainerVersion - the javaContainerVersion value to set
      Returns:
      the SiteConfig object itself.
    • appCommandLine

      public String appCommandLine()
      Get app command line to launch.
      Returns:
      the appCommandLine value
    • withAppCommandLine

      public SiteConfig withAppCommandLine(String appCommandLine)
      Set app command line to launch.
      Parameters:
      appCommandLine - the appCommandLine value to set
      Returns:
      the SiteConfig object itself.
    • managedPipelineMode

      public ManagedPipelineMode managedPipelineMode()
      Get managed pipeline mode. Possible values include: 'Integrated', 'Classic'.
      Returns:
      the managedPipelineMode value
    • withManagedPipelineMode

      public SiteConfig withManagedPipelineMode(ManagedPipelineMode managedPipelineMode)
      Set managed pipeline mode. Possible values include: 'Integrated', 'Classic'.
      Parameters:
      managedPipelineMode - the managedPipelineMode value to set
      Returns:
      the SiteConfig object itself.
    • virtualApplications

      public List<VirtualApplication> virtualApplications()
      Get virtual applications.
      Returns:
      the virtualApplications value
    • withVirtualApplications

      public SiteConfig withVirtualApplications(List<VirtualApplication> virtualApplications)
      Set virtual applications.
      Parameters:
      virtualApplications - the virtualApplications value to set
      Returns:
      the SiteConfig object itself.
    • loadBalancing

      public SiteLoadBalancing loadBalancing()
      Get site load balancing. Possible values include: 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime', 'WeightedTotalTraffic', 'RequestHash'.
      Returns:
      the loadBalancing value
    • withLoadBalancing

      public SiteConfig withLoadBalancing(SiteLoadBalancing loadBalancing)
      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

      public Experiments experiments()
      Get this is work around for polymorphic types.
      Returns:
      the experiments value
    • withExperiments

      public SiteConfig withExperiments(Experiments experiments)
      Set this is work around for polymorphic types.
      Parameters:
      experiments - the experiments value to set
      Returns:
      the SiteConfig object itself.
    • limits

      public SiteLimits limits()
      Get site limits.
      Returns:
      the limits value
    • withLimits

      public SiteConfig withLimits(SiteLimits limits)
      Set site limits.
      Parameters:
      limits - the limits value to set
      Returns:
      the SiteConfig object itself.
    • autoHealEnabled

      public Boolean autoHealEnabled()
      Get <code>true</code> if Auto Heal is enabled; otherwise, <code>false</code>.
      Returns:
      the autoHealEnabled value
    • withAutoHealEnabled

      public SiteConfig withAutoHealEnabled(Boolean autoHealEnabled)
      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

      public AutoHealRules autoHealRules()
      Get auto Heal rules.
      Returns:
      the autoHealRules value
    • withAutoHealRules

      public SiteConfig withAutoHealRules(AutoHealRules autoHealRules)
      Set auto Heal rules.
      Parameters:
      autoHealRules - the autoHealRules value to set
      Returns:
      the SiteConfig object itself.
    • tracingOptions

      public String tracingOptions()
      Get tracing options.
      Returns:
      the tracingOptions value
    • withTracingOptions

      public SiteConfig withTracingOptions(String tracingOptions)
      Set tracing options.
      Parameters:
      tracingOptions - the tracingOptions value to set
      Returns:
      the SiteConfig object itself.
    • vnetName

      public String vnetName()
      Get virtual Network name.
      Returns:
      the vnetName value
    • withVnetName

      public SiteConfig withVnetName(String vnetName)
      Set virtual Network name.
      Parameters:
      vnetName - the vnetName value to set
      Returns:
      the SiteConfig object itself.
    • cors

      public CorsSettings cors()
      Get cross-Origin Resource Sharing (CORS) settings.
      Returns:
      the cors value
    • withCors

      public SiteConfig withCors(CorsSettings cors)
      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

      public ApiDefinitionInfo apiDefinition()
      Get information about the formal API definition for the app.
      Returns:
      the apiDefinition value
    • withApiDefinition

      public SiteConfig withApiDefinition(ApiDefinitionInfo apiDefinition)
      Set information about the formal API definition for the app.
      Parameters:
      apiDefinition - the apiDefinition value to set
      Returns:
      the SiteConfig object itself.
    • apiManagementConfig

      public ApiManagementConfig apiManagementConfig()
      Get azure API management settings linked to the app.
      Returns:
      the apiManagementConfig value
    • withApiManagementConfig

      public SiteConfig withApiManagementConfig(ApiManagementConfig apiManagementConfig)
      Set azure API management settings linked to the app.
      Parameters:
      apiManagementConfig - the apiManagementConfig value to set
      Returns:
      the SiteConfig object itself.
    • autoSwapSlotName

      public String autoSwapSlotName()
      Get auto-swap slot name.
      Returns:
      the autoSwapSlotName value
    • withAutoSwapSlotName

      public SiteConfig withAutoSwapSlotName(String autoSwapSlotName)
      Set auto-swap slot name.
      Parameters:
      autoSwapSlotName - the autoSwapSlotName value to set
      Returns:
      the SiteConfig object itself.
    • localMySqlEnabled

      public Boolean localMySqlEnabled()
      Get <code>true</code> to enable local MySQL; otherwise, <code>false</code>.
      Returns:
      the localMySqlEnabled value
    • withLocalMySqlEnabled

      public SiteConfig withLocalMySqlEnabled(Boolean localMySqlEnabled)
      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

      public Integer managedServiceIdentityId()
      Get managed Service Identity Id.
      Returns:
      the managedServiceIdentityId value
    • withManagedServiceIdentityId

      public SiteConfig withManagedServiceIdentityId(Integer managedServiceIdentityId)
      Set managed Service Identity Id.
      Parameters:
      managedServiceIdentityId - the managedServiceIdentityId value to set
      Returns:
      the SiteConfig object itself.
    • xManagedServiceIdentityId

      public Integer xManagedServiceIdentityId()
      Get explicit Managed Service Identity Id.
      Returns:
      the xManagedServiceIdentityId value
    • withXManagedServiceIdentityId

      public SiteConfig withXManagedServiceIdentityId(Integer xManagedServiceIdentityId)
      Set explicit Managed Service Identity Id.
      Parameters:
      xManagedServiceIdentityId - the xManagedServiceIdentityId value to set
      Returns:
      the SiteConfig object itself.
    • ipSecurityRestrictions

      public List<IpSecurityRestriction> ipSecurityRestrictions()
      Get iP security restrictions for main.
      Returns:
      the ipSecurityRestrictions value
    • withIpSecurityRestrictions

      public SiteConfig withIpSecurityRestrictions(List<IpSecurityRestriction> ipSecurityRestrictions)
      Set iP security restrictions for main.
      Parameters:
      ipSecurityRestrictions - the ipSecurityRestrictions value to set
      Returns:
      the SiteConfig object itself.
    • scmIpSecurityRestrictions

      public List<IpSecurityRestriction> 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

      public Boolean scmIpSecurityRestrictionsUseMain()
      Get iP security restrictions for scm to use main.
      Returns:
      the scmIpSecurityRestrictionsUseMain value
    • withScmIpSecurityRestrictionsUseMain

      public SiteConfig withScmIpSecurityRestrictionsUseMain(Boolean scmIpSecurityRestrictionsUseMain)
      Set iP security restrictions for scm to use main.
      Parameters:
      scmIpSecurityRestrictionsUseMain - the scmIpSecurityRestrictionsUseMain value to set
      Returns:
      the SiteConfig object itself.
    • http20Enabled

      public Boolean http20Enabled()
      Get http20Enabled: configures a web site to allow clients to connect over http2.0.
      Returns:
      the http20Enabled value
    • withHttp20Enabled

      public SiteConfig withHttp20Enabled(Boolean http20Enabled)
      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

      public SupportedTlsVersions 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

      public SiteConfig withMinTlsVersion(SupportedTlsVersions minTlsVersion)
      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

      public FtpsState ftpsState()
      Get state of FTP / FTPS service. Possible values include: 'AllAllowed', 'FtpsOnly', 'Disabled'.
      Returns:
      the ftpsState value
    • withFtpsState

      public SiteConfig withFtpsState(FtpsState ftpsState)
      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

      public Integer preWarmedInstanceCount()
      Get number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans.
      Returns:
      the preWarmedInstanceCount value
    • withPreWarmedInstanceCount

      public SiteConfig withPreWarmedInstanceCount(Integer preWarmedInstanceCount)
      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

      public String healthCheckPath()
      Get health check path.
      Returns:
      the healthCheckPath value
    • withHealthCheckPath

      public SiteConfig withHealthCheckPath(String healthCheckPath)
      Set health check path.
      Parameters:
      healthCheckPath - the healthCheckPath value to set
      Returns:
      the SiteConfig object itself.