Class AppServicePlanInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.appservice.fluent.models.AppServicePlanInner

public final class AppServicePlanInner extends com.azure.core.management.Resource
App Service plan.
  • Constructor Details

    • AppServicePlanInner

      public AppServicePlanInner()
  • Method Details

    • sku

      public SkuDescription sku()
      Get the sku property: Description of a SKU for a scalable resource.
      Returns:
      the sku value.
    • withSku

      public AppServicePlanInner withSku(SkuDescription sku)
      Set the sku property: Description of a SKU for a scalable resource.
      Parameters:
      sku - the sku value to set.
      Returns:
      the AppServicePlanInner object itself.
    • extendedLocation

      public ExtendedLocation extendedLocation()
      Get the extendedLocation property: Extended Location.
      Returns:
      the extendedLocation value.
    • withExtendedLocation

      public AppServicePlanInner withExtendedLocation(ExtendedLocation extendedLocation)
      Set the extendedLocation property: Extended Location.
      Parameters:
      extendedLocation - the extendedLocation value to set.
      Returns:
      the AppServicePlanInner object itself.
    • kind

      public String kind()
      Get the kind property: Kind of resource.
      Returns:
      the kind value.
    • withKind

      public AppServicePlanInner withKind(String kind)
      Set the kind property: Kind of resource.
      Parameters:
      kind - the kind value to set.
      Returns:
      the AppServicePlanInner object itself.
    • withLocation

      public AppServicePlanInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public AppServicePlanInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • workerTierName

      public String workerTierName()
      Get the workerTierName property: Target worker tier assigned to the App Service plan.
      Returns:
      the workerTierName value.
    • withWorkerTierName

      public AppServicePlanInner withWorkerTierName(String workerTierName)
      Set the workerTierName property: Target worker tier assigned to the App Service plan.
      Parameters:
      workerTierName - the workerTierName value to set.
      Returns:
      the AppServicePlanInner object itself.
    • status

      public StatusOptions status()
      Get the status property: App Service plan status.
      Returns:
      the status value.
    • subscription

      public String subscription()
      Get the subscription property: App Service plan subscription.
      Returns:
      the subscription value.
    • hostingEnvironmentProfile

      public HostingEnvironmentProfile hostingEnvironmentProfile()
      Get the hostingEnvironmentProfile property: Specification for the App Service Environment to use for the App Service plan.
      Returns:
      the hostingEnvironmentProfile value.
    • withHostingEnvironmentProfile

      public AppServicePlanInner withHostingEnvironmentProfile(HostingEnvironmentProfile hostingEnvironmentProfile)
      Set the hostingEnvironmentProfile property: Specification for the App Service Environment to use for the App Service plan.
      Parameters:
      hostingEnvironmentProfile - the hostingEnvironmentProfile value to set.
      Returns:
      the AppServicePlanInner object itself.
    • maximumNumberOfWorkers

      public Integer maximumNumberOfWorkers()
      Get the maximumNumberOfWorkers property: Maximum number of instances that can be assigned to this App Service plan.
      Returns:
      the maximumNumberOfWorkers value.
    • numberOfWorkers

      public Integer numberOfWorkers()
      Get the numberOfWorkers property: The number of instances that are assigned to this App Service plan.
      Returns:
      the numberOfWorkers value.
    • geoRegion

      public String geoRegion()
      Get the geoRegion property: Geographical location for the App Service plan.
      Returns:
      the geoRegion value.
    • perSiteScaling

      public Boolean perSiteScaling()
      Get the perSiteScaling property: If <code>true</code>, apps assigned to this App Service plan can be scaled independently. If <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan.
      Returns:
      the perSiteScaling value.
    • withPerSiteScaling

      public AppServicePlanInner withPerSiteScaling(Boolean perSiteScaling)
      Set the perSiteScaling property: If <code>true</code>, apps assigned to this App Service plan can be scaled independently. If <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan.
      Parameters:
      perSiteScaling - the perSiteScaling value to set.
      Returns:
      the AppServicePlanInner object itself.
    • elasticScaleEnabled

      public Boolean elasticScaleEnabled()
      Get the elasticScaleEnabled property: ServerFarm supports ElasticScale. Apps in this plan will scale as if the ServerFarm was ElasticPremium sku.
      Returns:
      the elasticScaleEnabled value.
    • withElasticScaleEnabled

      public AppServicePlanInner withElasticScaleEnabled(Boolean elasticScaleEnabled)
      Set the elasticScaleEnabled property: ServerFarm supports ElasticScale. Apps in this plan will scale as if the ServerFarm was ElasticPremium sku.
      Parameters:
      elasticScaleEnabled - the elasticScaleEnabled value to set.
      Returns:
      the AppServicePlanInner object itself.
    • maximumElasticWorkerCount

      public Integer maximumElasticWorkerCount()
      Get the maximumElasticWorkerCount property: Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.
      Returns:
      the maximumElasticWorkerCount value.
    • withMaximumElasticWorkerCount

      public AppServicePlanInner withMaximumElasticWorkerCount(Integer maximumElasticWorkerCount)
      Set the maximumElasticWorkerCount property: Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.
      Parameters:
      maximumElasticWorkerCount - the maximumElasticWorkerCount value to set.
      Returns:
      the AppServicePlanInner object itself.
    • numberOfSites

      public Integer numberOfSites()
      Get the numberOfSites property: Number of apps assigned to this App Service plan.
      Returns:
      the numberOfSites value.
    • isSpot

      public Boolean isSpot()
      Get the isSpot property: If <code>true</code>, this App Service Plan owns spot instances.
      Returns:
      the isSpot value.
    • withIsSpot

      public AppServicePlanInner withIsSpot(Boolean isSpot)
      Set the isSpot property: If <code>true</code>, this App Service Plan owns spot instances.
      Parameters:
      isSpot - the isSpot value to set.
      Returns:
      the AppServicePlanInner object itself.
    • spotExpirationTime

      public OffsetDateTime spotExpirationTime()
      Get the spotExpirationTime property: The time when the server farm expires. Valid only if it is a spot server farm.
      Returns:
      the spotExpirationTime value.
    • withSpotExpirationTime

      public AppServicePlanInner withSpotExpirationTime(OffsetDateTime spotExpirationTime)
      Set the spotExpirationTime property: The time when the server farm expires. Valid only if it is a spot server farm.
      Parameters:
      spotExpirationTime - the spotExpirationTime value to set.
      Returns:
      the AppServicePlanInner object itself.
    • freeOfferExpirationTime

      public OffsetDateTime freeOfferExpirationTime()
      Get the freeOfferExpirationTime property: The time when the server farm free offer expires.
      Returns:
      the freeOfferExpirationTime value.
    • withFreeOfferExpirationTime

      public AppServicePlanInner withFreeOfferExpirationTime(OffsetDateTime freeOfferExpirationTime)
      Set the freeOfferExpirationTime property: The time when the server farm free offer expires.
      Parameters:
      freeOfferExpirationTime - the freeOfferExpirationTime value to set.
      Returns:
      the AppServicePlanInner object itself.
    • resourceGroup

      public String resourceGroup()
      Get the resourceGroup property: Resource group of the App Service plan.
      Returns:
      the resourceGroup value.
    • reserved

      public Boolean reserved()
      Get the reserved property: If Linux app service plan <code>true</code>, <code>false</code> otherwise.
      Returns:
      the reserved value.
    • withReserved

      public AppServicePlanInner withReserved(Boolean reserved)
      Set the reserved property: If Linux app service plan <code>true</code>, <code>false</code> otherwise.
      Parameters:
      reserved - the reserved value to set.
      Returns:
      the AppServicePlanInner object itself.
    • isXenon

      public Boolean isXenon()
      Get the isXenon property: Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.
      Returns:
      the isXenon value.
    • withIsXenon

      public AppServicePlanInner withIsXenon(Boolean isXenon)
      Set the isXenon property: Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.
      Parameters:
      isXenon - the isXenon value to set.
      Returns:
      the AppServicePlanInner object itself.
    • hyperV

      public Boolean hyperV()
      Get the hyperV property: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.
      Returns:
      the hyperV value.
    • withHyperV

      public AppServicePlanInner withHyperV(Boolean hyperV)
      Set the hyperV property: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.
      Parameters:
      hyperV - the hyperV value to set.
      Returns:
      the AppServicePlanInner object itself.
    • targetWorkerCount

      public Integer targetWorkerCount()
      Get the targetWorkerCount property: Scaling worker count.
      Returns:
      the targetWorkerCount value.
    • withTargetWorkerCount

      public AppServicePlanInner withTargetWorkerCount(Integer targetWorkerCount)
      Set the targetWorkerCount property: Scaling worker count.
      Parameters:
      targetWorkerCount - the targetWorkerCount value to set.
      Returns:
      the AppServicePlanInner object itself.
    • targetWorkerSizeId

      public Integer targetWorkerSizeId()
      Get the targetWorkerSizeId property: Scaling worker size ID.
      Returns:
      the targetWorkerSizeId value.
    • withTargetWorkerSizeId

      public AppServicePlanInner withTargetWorkerSizeId(Integer targetWorkerSizeId)
      Set the targetWorkerSizeId property: Scaling worker size ID.
      Parameters:
      targetWorkerSizeId - the targetWorkerSizeId value to set.
      Returns:
      the AppServicePlanInner object itself.
    • provisioningState

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

      public KubeEnvironmentProfile kubeEnvironmentProfile()
      Get the kubeEnvironmentProfile property: Specification for the Kubernetes Environment to use for the App Service plan.
      Returns:
      the kubeEnvironmentProfile value.
    • withKubeEnvironmentProfile

      public AppServicePlanInner withKubeEnvironmentProfile(KubeEnvironmentProfile kubeEnvironmentProfile)
      Set the kubeEnvironmentProfile property: Specification for the Kubernetes Environment to use for the App Service plan.
      Parameters:
      kubeEnvironmentProfile - the kubeEnvironmentProfile value to set.
      Returns:
      the AppServicePlanInner object itself.
    • zoneRedundant

      public Boolean zoneRedundant()
      Get the zoneRedundant property: If <code>true</code>, this App Service Plan will perform availability zone balancing. If <code>false</code>, this App Service Plan will not perform availability zone balancing.
      Returns:
      the zoneRedundant value.
    • withZoneRedundant

      public AppServicePlanInner withZoneRedundant(Boolean zoneRedundant)
      Set the zoneRedundant property: If <code>true</code>, this App Service Plan will perform availability zone balancing. If <code>false</code>, this App Service Plan will not perform availability zone balancing.
      Parameters:
      zoneRedundant - the zoneRedundant value to set.
      Returns:
      the AppServicePlanInner object itself.
    • validate

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