Class AppServiceEnvironment

java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.AppServiceEnvironment

public final class AppServiceEnvironment extends Object
Description of an App Service Environment.
  • Constructor Details

    • AppServiceEnvironment

      public AppServiceEnvironment()
  • Method Details

    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: Provisioning state of the App Service Environment.
      Returns:
      the provisioningState value.
    • status

      public HostingEnvironmentStatus status()
      Get the status property: Current status of the App Service Environment.
      Returns:
      the status value.
    • virtualNetwork

      public VirtualNetworkProfile virtualNetwork()
      Get the virtualNetwork property: Description of the Virtual Network.
      Returns:
      the virtualNetwork value.
    • withVirtualNetwork

      public AppServiceEnvironment withVirtualNetwork(VirtualNetworkProfile virtualNetwork)
      Set the virtualNetwork property: Description of the Virtual Network.
      Parameters:
      virtualNetwork - the virtualNetwork value to set.
      Returns:
      the AppServiceEnvironment object itself.
    • internalLoadBalancingMode

      public LoadBalancingMode internalLoadBalancingMode()
      Get the internalLoadBalancingMode property: Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment.
      Returns:
      the internalLoadBalancingMode value.
    • withInternalLoadBalancingMode

      public AppServiceEnvironment withInternalLoadBalancingMode(LoadBalancingMode internalLoadBalancingMode)
      Set the internalLoadBalancingMode property: Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment.
      Parameters:
      internalLoadBalancingMode - the internalLoadBalancingMode value to set.
      Returns:
      the AppServiceEnvironment object itself.
    • multiSize

      public String multiSize()
      Get the multiSize property: Front-end VM size, e.g. "Medium", "Large".
      Returns:
      the multiSize value.
    • withMultiSize

      public AppServiceEnvironment withMultiSize(String multiSize)
      Set the multiSize property: Front-end VM size, e.g. "Medium", "Large".
      Parameters:
      multiSize - the multiSize value to set.
      Returns:
      the AppServiceEnvironment object itself.
    • multiRoleCount

      public Integer multiRoleCount()
      Get the multiRoleCount property: Number of front-end instances.
      Returns:
      the multiRoleCount value.
    • ipsslAddressCount

      public Integer ipsslAddressCount()
      Get the ipsslAddressCount property: Number of IP SSL addresses reserved for the App Service Environment.
      Returns:
      the ipsslAddressCount value.
    • withIpsslAddressCount

      public AppServiceEnvironment withIpsslAddressCount(Integer ipsslAddressCount)
      Set the ipsslAddressCount property: Number of IP SSL addresses reserved for the App Service Environment.
      Parameters:
      ipsslAddressCount - the ipsslAddressCount value to set.
      Returns:
      the AppServiceEnvironment object itself.
    • dnsSuffix

      public String dnsSuffix()
      Get the dnsSuffix property: DNS suffix of the App Service Environment.
      Returns:
      the dnsSuffix value.
    • withDnsSuffix

      public AppServiceEnvironment withDnsSuffix(String dnsSuffix)
      Set the dnsSuffix property: DNS suffix of the App Service Environment.
      Parameters:
      dnsSuffix - the dnsSuffix value to set.
      Returns:
      the AppServiceEnvironment object itself.
    • maximumNumberOfMachines

      public Integer maximumNumberOfMachines()
      Get the maximumNumberOfMachines property: Maximum number of VMs in the App Service Environment.
      Returns:
      the maximumNumberOfMachines value.
    • frontEndScaleFactor

      public Integer frontEndScaleFactor()
      Get the frontEndScaleFactor property: Scale factor for front-ends.
      Returns:
      the frontEndScaleFactor value.
    • withFrontEndScaleFactor

      public AppServiceEnvironment withFrontEndScaleFactor(Integer frontEndScaleFactor)
      Set the frontEndScaleFactor property: Scale factor for front-ends.
      Parameters:
      frontEndScaleFactor - the frontEndScaleFactor value to set.
      Returns:
      the AppServiceEnvironment object itself.
    • suspended

      public Boolean suspended()
      Get the suspended property: <code>true</code> if the App Service Environment is suspended; otherwise, <code>false</code>. The environment can be suspended, e.g. when the management endpoint is no longer available (most likely because NSG blocked the incoming traffic).
      Returns:
      the suspended value.
    • clusterSettings

      public List<NameValuePair> clusterSettings()
      Get the clusterSettings property: Custom settings for changing the behavior of the App Service Environment.
      Returns:
      the clusterSettings value.
    • withClusterSettings

      public AppServiceEnvironment withClusterSettings(List<NameValuePair> clusterSettings)
      Set the clusterSettings property: Custom settings for changing the behavior of the App Service Environment.
      Parameters:
      clusterSettings - the clusterSettings value to set.
      Returns:
      the AppServiceEnvironment object itself.
    • userWhitelistedIpRanges

      public List<String> userWhitelistedIpRanges()
      Get the userWhitelistedIpRanges property: User added ip ranges to whitelist on ASE db.
      Returns:
      the userWhitelistedIpRanges value.
    • withUserWhitelistedIpRanges

      public AppServiceEnvironment withUserWhitelistedIpRanges(List<String> userWhitelistedIpRanges)
      Set the userWhitelistedIpRanges property: User added ip ranges to whitelist on ASE db.
      Parameters:
      userWhitelistedIpRanges - the userWhitelistedIpRanges value to set.
      Returns:
      the AppServiceEnvironment object itself.
    • hasLinuxWorkers

      public Boolean hasLinuxWorkers()
      Get the hasLinuxWorkers property: Flag that displays whether an ASE has linux workers or not.
      Returns:
      the hasLinuxWorkers value.
    • dedicatedHostCount

      public Integer dedicatedHostCount()
      Get the dedicatedHostCount property: Dedicated Host Count.
      Returns:
      the dedicatedHostCount value.
    • withDedicatedHostCount

      public AppServiceEnvironment withDedicatedHostCount(Integer dedicatedHostCount)
      Set the dedicatedHostCount property: Dedicated Host Count.
      Parameters:
      dedicatedHostCount - the dedicatedHostCount value to set.
      Returns:
      the AppServiceEnvironment object itself.
    • zoneRedundant

      public Boolean zoneRedundant()
      Get the zoneRedundant property: Whether or not this App Service Environment is zone-redundant.
      Returns:
      the zoneRedundant value.
    • withZoneRedundant

      public AppServiceEnvironment withZoneRedundant(Boolean zoneRedundant)
      Set the zoneRedundant property: Whether or not this App Service Environment is zone-redundant.
      Parameters:
      zoneRedundant - the zoneRedundant value to set.
      Returns:
      the AppServiceEnvironment object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.