Class AppServicePlanInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.appservice.fluent.models.AppServicePlanInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class AppServicePlanInner
extends com.azure.core.management.Resource
App Service plan.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the asyncScalingEnabled property: If <code>true</code>, this App Service Plan will attempt to scale asynchronously if there are insufficient workers to scale synchronously.Get the elasticScaleEnabled property: ServerFarm supports ElasticScale.Get the extendedLocation property: Extended Location.Get the freeOfferExpirationTime property: The time when the server farm free offer expires.static AppServicePlanInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AppServicePlanInner from the JsonReader.Get the geoRegion property: Geographical location for the App Service plan.Get the hostingEnvironmentProfile property: Specification for the App Service Environment to use for the App Service plan.hyperV()Get the hyperV property: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.id()Get the id property: Fully qualified resource Id for the resource.identity()Get the identity property: Managed service identity.Get the installScripts property: Install scripts associated with this App Service plan.Get the isCustomMode property: Whether this server farm is in custom mode.isSpot()Get the isSpot property: If <code>true</code>, this App Service Plan owns spot instances.isXenon()Get the isXenon property: Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.kind()Get the kind property: Kind of resource.Get the kubeEnvironmentProfile property: Specification for the Kubernetes Environment to use for the App Service plan.Get the maximumElasticWorkerCount property: Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.Get the maximumNumberOfWorkers property: Maximum number of instances that can be assigned to this App Service plan.name()Get the name property: The name of the resource.network()Get the network property: All network settings for the server farm.Get the numberOfSites property: Number of apps assigned to this App Service plan.Get the numberOfWorkers property: The number of instances that are assigned to this App Service plan.Get the perSiteScaling property: If <code>true</code>, apps assigned to this App Service plan can be scaled independently.Get the planDefaultIdentity property: Identity to use by platform for various features and integrations using managed identity.Get the provisioningState property: Provisioning state of the App Service Plan.Get the rdpEnabled property: If <code>true</code>, RDP access is enabled for this App Service plan.Get the registryAdapters property: Registry adapters associated with this App Service plan.reserved()Get the reserved property: If Linux app service plan <code>true</code>, <code>false</code> otherwise.Get the resourceGroup property: Resource group of the App Service plan.sku()Get the sku property: Description of a SKU for a scalable resource.Get the spotExpirationTime property: The time when the server farm expires.status()Get the status property: App Service plan status.Get the storageMounts property: Storage mounts associated with this App Service plan.Get the subscription property: App Service plan subscription.Get the targetWorkerCount property: Scaling worker count.Get the targetWorkerSizeId property: Scaling worker size ID.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withAsyncScalingEnabled(Boolean asyncScalingEnabled) Set the asyncScalingEnabled property: If <code>true</code>, this App Service Plan will attempt to scale asynchronously if there are insufficient workers to scale synchronously.withElasticScaleEnabled(Boolean elasticScaleEnabled) Set the elasticScaleEnabled property: ServerFarm supports ElasticScale.withExtendedLocation(ExtendedLocation extendedLocation) Set the extendedLocation property: Extended Location.withFreeOfferExpirationTime(OffsetDateTime freeOfferExpirationTime) Set the freeOfferExpirationTime property: The time when the server farm free offer expires.withHostingEnvironmentProfile(HostingEnvironmentProfile hostingEnvironmentProfile) Set the hostingEnvironmentProfile property: Specification for the App Service Environment to use for the App Service plan.withHyperV(Boolean hyperV) Set the hyperV property: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.withIdentity(ManagedServiceIdentity identity) Set the identity property: Managed service identity.withInstallScripts(List<InstallScript> installScripts) Set the installScripts property: Install scripts associated with this App Service plan.withIsCustomMode(Boolean isCustomMode) Set the isCustomMode property: Whether this server farm is in custom mode.withIsSpot(Boolean isSpot) Set the isSpot property: If <code>true</code>, this App Service Plan owns spot instances.withIsXenon(Boolean isXenon) Set the isXenon property: Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.Set the kind property: Kind of resource.withKubeEnvironmentProfile(KubeEnvironmentProfile kubeEnvironmentProfile) Set the kubeEnvironmentProfile property: Specification for the Kubernetes Environment to use for the App Service plan.withLocation(String location) withMaximumElasticWorkerCount(Integer maximumElasticWorkerCount) Set the maximumElasticWorkerCount property: Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.withNetwork(ServerFarmNetworkSettings network) Set the network property: All network settings for the server farm.withPerSiteScaling(Boolean perSiteScaling) Set the perSiteScaling property: If <code>true</code>, apps assigned to this App Service plan can be scaled independently.withPlanDefaultIdentity(DefaultIdentity planDefaultIdentity) Set the planDefaultIdentity property: Identity to use by platform for various features and integrations using managed identity.withRdpEnabled(Boolean rdpEnabled) Set the rdpEnabled property: If <code>true</code>, RDP access is enabled for this App Service plan.withRegistryAdapters(List<RegistryAdapter> registryAdapters) Set the registryAdapters property: Registry adapters associated with this App Service plan.withReserved(Boolean reserved) Set the reserved property: If Linux app service plan <code>true</code>, <code>false</code> otherwise.withSku(SkuDescription sku) Set the sku property: Description of a SKU for a scalable resource.withSpotExpirationTime(OffsetDateTime spotExpirationTime) Set the spotExpirationTime property: The time when the server farm expires.withStorageMounts(List<StorageMount> storageMounts) Set the storageMounts property: Storage mounts associated with this App Service plan.withTargetWorkerCount(Integer targetWorkerCount) Set the targetWorkerCount property: Scaling worker count.withTargetWorkerSizeId(Integer targetWorkerSizeId) Set the targetWorkerSizeId property: Scaling worker size ID.withWorkerTierName(String workerTierName) Set the workerTierName property: Target worker tier assigned to the App Service plan.withZoneRedundant(Boolean zoneRedundant) Set the zoneRedundant property: If <code>true</code>, this App Service Plan will perform availability zone balancing.Get the workerTierName property: Target worker tier assigned to the App Service plan.Get the zoneRedundant property: If <code>true</code>, this App Service Plan will perform availability zone balancing.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AppServicePlanInner
public AppServicePlanInner()Creates an instance of AppServicePlanInner class.
-
-
Method Details
-
sku
Get the sku property: Description of a SKU for a scalable resource.- Returns:
- the sku value.
-
withSku
Set the sku property: Description of a SKU for a scalable resource.- Parameters:
sku- the sku value to set.- Returns:
- the AppServicePlanInner object itself.
-
identity
Get the identity property: Managed service identity.- Returns:
- the identity value.
-
withIdentity
Set the identity property: Managed service identity.- Parameters:
identity- the identity value to set.- Returns:
- the AppServicePlanInner object itself.
-
extendedLocation
Get the extendedLocation property: Extended Location.- Returns:
- the extendedLocation value.
-
withExtendedLocation
Set the extendedLocation property: Extended Location.- Parameters:
extendedLocation- the extendedLocation value to set.- Returns:
- the AppServicePlanInner object itself.
-
kind
Get the kind property: Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind.- Returns:
- the kind value.
-
withKind
Set the kind property: Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind.- Parameters:
kind- the kind value to set.- Returns:
- the AppServicePlanInner object itself.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
workerTierName
Get the workerTierName property: Target worker tier assigned to the App Service plan.- Returns:
- the workerTierName value.
-
withWorkerTierName
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
Get the status property: App Service plan status.- Returns:
- the status value.
-
subscription
Get the subscription property: App Service plan subscription.- Returns:
- the subscription value.
-
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
Get the maximumNumberOfWorkers property: Maximum number of instances that can be assigned to this App Service plan.- Returns:
- the maximumNumberOfWorkers value.
-
numberOfWorkers
Get the numberOfWorkers property: The number of instances that are assigned to this App Service plan.- Returns:
- the numberOfWorkers value.
-
geoRegion
Get the geoRegion property: Geographical location for the App Service plan.- Returns:
- the geoRegion value.
-
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
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
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
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
Get the maximumElasticWorkerCount property: Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.- Returns:
- the maximumElasticWorkerCount value.
-
withMaximumElasticWorkerCount
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
Get the numberOfSites property: Number of apps assigned to this App Service plan.- Returns:
- the numberOfSites value.
-
isSpot
Get the isSpot property: If <code>true</code>, this App Service Plan owns spot instances.- Returns:
- the isSpot value.
-
withIsSpot
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
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
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
Get the freeOfferExpirationTime property: The time when the server farm free offer expires.- Returns:
- the freeOfferExpirationTime value.
-
withFreeOfferExpirationTime
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
Get the resourceGroup property: Resource group of the App Service plan.- Returns:
- the resourceGroup value.
-
reserved
Get the reserved property: If Linux app service plan <code>true</code>, <code>false</code> otherwise.- Returns:
- the reserved value.
-
withReserved
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
Get the isXenon property: Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.- Returns:
- the isXenon value.
-
withIsXenon
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
Get the hyperV property: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.- Returns:
- the hyperV value.
-
withHyperV
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
Get the targetWorkerCount property: Scaling worker count.- Returns:
- the targetWorkerCount value.
-
withTargetWorkerCount
Set the targetWorkerCount property: Scaling worker count.- Parameters:
targetWorkerCount- the targetWorkerCount value to set.- Returns:
- the AppServicePlanInner object itself.
-
targetWorkerSizeId
Get the targetWorkerSizeId property: Scaling worker size ID.- Returns:
- the targetWorkerSizeId value.
-
withTargetWorkerSizeId
Set the targetWorkerSizeId property: Scaling worker size ID.- Parameters:
targetWorkerSizeId- the targetWorkerSizeId value to set.- Returns:
- the AppServicePlanInner object itself.
-
provisioningState
Get the provisioningState property: Provisioning state of the App Service Plan.- Returns:
- the provisioningState value.
-
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
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
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.
-
asyncScalingEnabled
Get the asyncScalingEnabled property: If <code>true</code>, this App Service Plan will attempt to scale asynchronously if there are insufficient workers to scale synchronously. If <code>false</code>, this App Service Plan will only attempt sync scaling.- Returns:
- the asyncScalingEnabled value.
-
withAsyncScalingEnabled
Set the asyncScalingEnabled property: If <code>true</code>, this App Service Plan will attempt to scale asynchronously if there are insufficient workers to scale synchronously. If <code>false</code>, this App Service Plan will only attempt sync scaling.- Parameters:
asyncScalingEnabled- the asyncScalingEnabled value to set.- Returns:
- the AppServicePlanInner object itself.
-
planDefaultIdentity
Get the planDefaultIdentity property: Identity to use by platform for various features and integrations using managed identity.- Returns:
- the planDefaultIdentity value.
-
withPlanDefaultIdentity
Set the planDefaultIdentity property: Identity to use by platform for various features and integrations using managed identity.- Parameters:
planDefaultIdentity- the planDefaultIdentity value to set.- Returns:
- the AppServicePlanInner object itself.
-
isCustomMode
Get the isCustomMode property: Whether this server farm is in custom mode.- Returns:
- the isCustomMode value.
-
withIsCustomMode
Set the isCustomMode property: Whether this server farm is in custom mode.- Parameters:
isCustomMode- the isCustomMode value to set.- Returns:
- the AppServicePlanInner object itself.
-
registryAdapters
Get the registryAdapters property: Registry adapters associated with this App Service plan.- Returns:
- the registryAdapters value.
-
withRegistryAdapters
Set the registryAdapters property: Registry adapters associated with this App Service plan.- Parameters:
registryAdapters- the registryAdapters value to set.- Returns:
- the AppServicePlanInner object itself.
-
installScripts
Get the installScripts property: Install scripts associated with this App Service plan.- Returns:
- the installScripts value.
-
withInstallScripts
Set the installScripts property: Install scripts associated with this App Service plan.- Parameters:
installScripts- the installScripts value to set.- Returns:
- the AppServicePlanInner object itself.
-
network
Get the network property: All network settings for the server farm.- Returns:
- the network value.
-
withNetwork
Set the network property: All network settings for the server farm.- Parameters:
network- the network value to set.- Returns:
- the AppServicePlanInner object itself.
-
storageMounts
Get the storageMounts property: Storage mounts associated with this App Service plan.- Returns:
- the storageMounts value.
-
withStorageMounts
Set the storageMounts property: Storage mounts associated with this App Service plan.- Parameters:
storageMounts- the storageMounts value to set.- Returns:
- the AppServicePlanInner object itself.
-
rdpEnabled
Get the rdpEnabled property: If <code>true</code>, RDP access is enabled for this App Service plan. Only applicable for IsCustomMode ASPs. If <code>false</code>, RDP access is disabled.- Returns:
- the rdpEnabled value.
-
withRdpEnabled
Set the rdpEnabled property: If <code>true</code>, RDP access is enabled for this App Service plan. Only applicable for IsCustomMode ASPs. If <code>false</code>, RDP access is disabled.- Parameters:
rdpEnabled- the rdpEnabled value to set.- Returns:
- the AppServicePlanInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
Reads an instance of AppServicePlanInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AppServicePlanInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the AppServicePlanInner.
-