AppServicePlanInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. appservice. fluent. models. AppServicePlanInner
- com.
- com.
- com.
public final class AppServicePlanInner
extends Resource
App Service plan.
Constructor Summary
| Constructor | Description |
|---|---|
| AppServicePlanInner() |
Creates an instance of App |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
asyncScalingEnabled()
Get the async |
| Boolean |
elasticScaleEnabled()
Get the elastic |
|
Extended |
extendedLocation()
Get the extended |
|
Offset |
freeOfferExpirationTime()
Get the free |
|
static
App |
fromJson(JsonReader jsonReader)
Reads an instance of App |
| String |
geoRegion()
Get the geo |
|
Hosting |
hostingEnvironmentProfile()
Get the hosting |
| Boolean |
hyperV()
Get the hyperV property: If Hyper-V container app service plan |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
|
Managed |
identity()
Get the identity property: Managed service identity. |
|
List<Install |
installScripts()
Get the install |
| Boolean |
isCustomMode()
Get the is |
| Boolean |
isSpot()
Get the is |
| Boolean |
isXenon()
Get the is |
| String |
kind()
Get the kind property: Kind of resource. |
|
Kube |
kubeEnvironmentProfile()
Get the kube |
| Integer |
maximumElasticWorkerCount()
Get the maximum |
| Integer |
maximumNumberOfWorkers()
Get the maximum |
| String |
name()
Get the name property: The name of the resource. |
|
Server |
network()
Get the network property: All network settings for the server farm. |
| Integer |
numberOfSites()
Get the number |
| Integer |
numberOfWorkers()
Get the number |
| Boolean |
perSiteScaling()
Get the per |
|
Default |
planDefaultIdentity()
Get the plan |
|
Provisioning |
provisioningState()
Get the provisioning |
| Boolean |
rdpEnabled()
Get the rdp |
|
List<Registry |
registryAdapters()
Get the registry |
| Boolean |
reserved()
Get the reserved property: If Linux app service plan |
| String |
resourceGroup()
Get the resource |
|
Sku |
sku()
Get the sku property: Description of a SKU for a scalable resource. |
|
Offset |
spotExpirationTime()
Get the spot |
|
Status |
status()
Get the status property: App Service plan status. |
|
List<Storage |
storageMounts()
Get the storage |
| String |
subscription()
Get the subscription property: App Service plan subscription. |
| Integer |
targetWorkerCount()
Get the target |
| Integer |
targetWorkerSizeId()
Get the target |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
App |
withAsyncScalingEnabled(Boolean asyncScalingEnabled)
Set the async |
|
App |
withElasticScaleEnabled(Boolean elasticScaleEnabled)
Set the elastic |
|
App |
withExtendedLocation(ExtendedLocation extendedLocation)
Set the extended |
|
App |
withFreeOfferExpirationTime(OffsetDateTime freeOfferExpirationTime)
Set the free |
|
App |
withHostingEnvironmentProfile(HostingEnvironmentProfile hostingEnvironmentProfile)
Set the hosting |
|
App |
withHyperV(Boolean hyperV)
Set the hyperV property: If Hyper-V container app service plan |
|
App |
withIdentity(ManagedServiceIdentity identity)
Set the identity property: Managed service identity. |
|
App |
withInstallScripts(List<InstallScript> installScripts)
Set the install |
|
App |
withIsCustomMode(Boolean isCustomMode)
Set the is |
|
App |
withIsSpot(Boolean isSpot)
Set the is |
|
App |
withIsXenon(Boolean isXenon)
Set the is |
|
App |
withKind(String kind)
Set the kind property: Kind of resource. |
|
App |
withKubeEnvironmentProfile(KubeEnvironmentProfile kubeEnvironmentProfile)
Set the kube |
|
App |
withLocation(String location) |
|
App |
withMaximumElasticWorkerCount(Integer maximumElasticWorkerCount)
Set the maximum |
|
App |
withNetwork(ServerFarmNetworkSettings network)
Set the network property: All network settings for the server farm. |
|
App |
withPerSiteScaling(Boolean perSiteScaling)
Set the per |
|
App |
withPlanDefaultIdentity(DefaultIdentity planDefaultIdentity)
Set the plan |
|
App |
withRdpEnabled(Boolean rdpEnabled)
Set the rdp |
|
App |
withRegistryAdapters(List<RegistryAdapter> registryAdapters)
Set the registry |
|
App |
withReserved(Boolean reserved)
Set the reserved property: If Linux app service plan |
|
App |
withSku(SkuDescription sku)
Set the sku property: Description of a SKU for a scalable resource. |
|
App |
withSpotExpirationTime(OffsetDateTime spotExpirationTime)
Set the spot |
|
App |
withStorageMounts(List<StorageMount> storageMounts)
Set the storage |
|
App |
withTags(Map<String,String> tags) |
|
App |
withTargetWorkerCount(Integer targetWorkerCount)
Set the target |
|
App |
withTargetWorkerSizeId(Integer targetWorkerSizeId)
Set the target |
|
App |
withWorkerTierName(String workerTierName)
Set the worker |
|
App |
withZoneRedundant(Boolean zoneRedundant)
Set the zone |
| String |
workerTierName()
Get the worker |
| Boolean |
zoneRedundant()
Get the zone |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
AppServicePlanInner
public AppServicePlanInner()
Creates an instance of AppServicePlanInner class.
Method Details
asyncScalingEnabled
public Boolean asyncScalingEnabled()
Get the asyncScalingEnabled property: If true, this App Service Plan will attempt to scale asynchronously if there are insufficient workers to scale synchronously. If false, this App Service Plan will only attempt sync scaling.
Returns:
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:
extendedLocation
public ExtendedLocation extendedLocation()
Get the extendedLocation property: Extended Location.
Returns:
freeOfferExpirationTime
public OffsetDateTime freeOfferExpirationTime()
Get the freeOfferExpirationTime property: The time when the server farm free offer expires.
Returns:
fromJson
public static AppServicePlanInner fromJson(JsonReader jsonReader)
Reads an instance of AppServicePlanInner from the JsonReader.
Parameters:
Returns:
Throws:
geoRegion
public String geoRegion()
Get the geoRegion property: Geographical location for the App Service plan.
Returns:
hostingEnvironmentProfile
public HostingEnvironmentProfile hostingEnvironmentProfile()
Get the hostingEnvironmentProfile property: Specification for the App Service Environment to use for the App Service plan.
Returns:
hyperV
public Boolean hyperV()
Get the hyperV property: If Hyper-V container app service plan true, false otherwise.
Returns:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
AppServicePlanInner.id()Returns:
identity
public ManagedServiceIdentity identity()
Get the identity property: Managed service identity.
Returns:
installScripts
public List<InstallScript> installScripts()
Get the installScripts property: Install scripts associated with this App Service plan.
Returns:
isCustomMode
public Boolean isCustomMode()
Get the isCustomMode property: Whether this server farm is in custom mode.
Returns:
isSpot
public Boolean isSpot()
Get the isSpot property: If true, this App Service Plan owns spot instances.
Returns:
isXenon
public Boolean isXenon()
Get the isXenon property: Obsolete: If Hyper-V container app service plan true, false otherwise.
Returns:
kind
public String 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:
kubeEnvironmentProfile
public KubeEnvironmentProfile kubeEnvironmentProfile()
Get the kubeEnvironmentProfile property: Specification for the Kubernetes Environment to use for the App Service plan.
Returns:
maximumElasticWorkerCount
public Integer maximumElasticWorkerCount()
Get the maximumElasticWorkerCount property: Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.
Returns:
maximumNumberOfWorkers
public Integer maximumNumberOfWorkers()
Get the maximumNumberOfWorkers property: Maximum number of instances that can be assigned to this App Service plan.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
AppServicePlanInner.name()Returns:
network
public ServerFarmNetworkSettings network()
Get the network property: All network settings for the server farm.
Returns:
numberOfSites
public Integer numberOfSites()
Get the numberOfSites property: Number of apps assigned to this App Service plan.
Returns:
numberOfWorkers
public Integer numberOfWorkers()
Get the numberOfWorkers property: The number of instances that are assigned to this App Service plan.
Returns:
perSiteScaling
public Boolean perSiteScaling()
Get the perSiteScaling property: If true, apps assigned to this App Service plan can be scaled independently. If false, apps assigned to this App Service plan will scale to all instances of the plan.
Returns:
planDefaultIdentity
public DefaultIdentity planDefaultIdentity()
Get the planDefaultIdentity property: Identity to use by platform for various features and integrations using managed identity.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Provisioning state of the App Service Plan.
Returns:
rdpEnabled
public Boolean rdpEnabled()
Get the rdpEnabled property: If true, RDP access is enabled for this App Service plan. Only applicable for IsCustomMode ASPs. If false, RDP access is disabled.
Returns:
registryAdapters
public List<RegistryAdapter> registryAdapters()
Get the registryAdapters property: Registry adapters associated with this App Service plan.
Returns:
reserved
public Boolean reserved()
Get the reserved property: If Linux app service plan true, false otherwise.
Returns:
resourceGroup
public String resourceGroup()
Get the resourceGroup property: Resource group of the App Service plan.
Returns:
sku
public SkuDescription sku()
Get the sku property: Description of a SKU for a scalable resource.
Returns:
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:
status
public StatusOptions status()
Get the status property: App Service plan status.
Returns:
storageMounts
public List<StorageMount> storageMounts()
Get the storageMounts property: Storage mounts associated with this App Service plan.
Returns:
subscription
public String subscription()
Get the subscription property: App Service plan subscription.
Returns:
targetWorkerCount
public Integer targetWorkerCount()
Get the targetWorkerCount property: Scaling worker count.
Returns:
targetWorkerSizeId
public Integer targetWorkerSizeId()
Get the targetWorkerSizeId property: Scaling worker size ID.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
AppServicePlanInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
AppServicePlanInner.type()Returns:
validate
public void validate()
Validates the instance.
withAsyncScalingEnabled
public AppServicePlanInner withAsyncScalingEnabled(Boolean asyncScalingEnabled)
Set the asyncScalingEnabled property: If true, this App Service Plan will attempt to scale asynchronously if there are insufficient workers to scale synchronously. If false, this App Service Plan will only attempt sync scaling.
Parameters:
Returns:
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:
Returns:
withExtendedLocation
public AppServicePlanInner withExtendedLocation(ExtendedLocation extendedLocation)
Set the extendedLocation property: Extended Location.
Parameters:
Returns:
withFreeOfferExpirationTime
public AppServicePlanInner withFreeOfferExpirationTime(OffsetDateTime freeOfferExpirationTime)
Set the freeOfferExpirationTime property: The time when the server farm free offer expires.
Parameters:
Returns:
withHostingEnvironmentProfile
public AppServicePlanInner withHostingEnvironmentProfile(HostingEnvironmentProfile hostingEnvironmentProfile)
Set the hostingEnvironmentProfile property: Specification for the App Service Environment to use for the App Service plan.
Parameters:
Returns:
withHyperV
public AppServicePlanInner withHyperV(Boolean hyperV)
Set the hyperV property: If Hyper-V container app service plan true, false otherwise.
Parameters:
Returns:
withIdentity
public AppServicePlanInner withIdentity(ManagedServiceIdentity identity)
Set the identity property: Managed service identity.
Parameters:
Returns:
withInstallScripts
public AppServicePlanInner withInstallScripts(List<InstallScript> installScripts)
Set the installScripts property: Install scripts associated with this App Service plan.
Parameters:
Returns:
withIsCustomMode
public AppServicePlanInner withIsCustomMode(Boolean isCustomMode)
Set the isCustomMode property: Whether this server farm is in custom mode.
Parameters:
Returns:
withIsSpot
public AppServicePlanInner withIsSpot(Boolean isSpot)
Set the isSpot property: If true, this App Service Plan owns spot instances.
Parameters:
Returns:
withIsXenon
public AppServicePlanInner withIsXenon(Boolean isXenon)
Set the isXenon property: Obsolete: If Hyper-V container app service plan true, false otherwise.
Parameters:
Returns:
withKind
public AppServicePlanInner withKind(String kind)
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:
Returns:
withKubeEnvironmentProfile
public AppServicePlanInner withKubeEnvironmentProfile(KubeEnvironmentProfile kubeEnvironmentProfile)
Set the kubeEnvironmentProfile property: Specification for the Kubernetes Environment to use for the App Service plan.
Parameters:
Returns:
withLocation
public AppServicePlanInner withLocation(String location)
Overrides:
AppServicePlanInner.withLocation(String location)Parameters:
withMaximumElasticWorkerCount
public AppServicePlanInner withMaximumElasticWorkerCount(Integer maximumElasticWorkerCount)
Set the maximumElasticWorkerCount property: Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.
Parameters:
Returns:
withNetwork
public AppServicePlanInner withNetwork(ServerFarmNetworkSettings network)
Set the network property: All network settings for the server farm.
Parameters:
Returns:
withPerSiteScaling
public AppServicePlanInner withPerSiteScaling(Boolean perSiteScaling)
Set the perSiteScaling property: If true, apps assigned to this App Service plan can be scaled independently. If false, apps assigned to this App Service plan will scale to all instances of the plan.
Parameters:
Returns:
withPlanDefaultIdentity
public AppServicePlanInner withPlanDefaultIdentity(DefaultIdentity planDefaultIdentity)
Set the planDefaultIdentity property: Identity to use by platform for various features and integrations using managed identity.
Parameters:
Returns:
withRdpEnabled
public AppServicePlanInner withRdpEnabled(Boolean rdpEnabled)
Set the rdpEnabled property: If true, RDP access is enabled for this App Service plan. Only applicable for IsCustomMode ASPs. If false, RDP access is disabled.
Parameters:
Returns:
withRegistryAdapters
public AppServicePlanInner withRegistryAdapters(List<RegistryAdapter> registryAdapters)
Set the registryAdapters property: Registry adapters associated with this App Service plan.
Parameters:
Returns:
withReserved
public AppServicePlanInner withReserved(Boolean reserved)
Set the reserved property: If Linux app service plan true, false otherwise.
Parameters:
Returns:
withSku
public AppServicePlanInner withSku(SkuDescription sku)
Set the sku property: Description of a SKU for a scalable resource.
Parameters:
Returns:
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:
Returns:
withStorageMounts
public AppServicePlanInner withStorageMounts(List<StorageMount> storageMounts)
Set the storageMounts property: Storage mounts associated with this App Service plan.
Parameters:
Returns:
withTags
public AppServicePlanInner withTags(Map<String,String> tags)
Overrides:
AppServicePlanInner.withTags(Map<String,String> tags)Parameters:
withTargetWorkerCount
public AppServicePlanInner withTargetWorkerCount(Integer targetWorkerCount)
Set the targetWorkerCount property: Scaling worker count.
Parameters:
Returns:
withTargetWorkerSizeId
public AppServicePlanInner withTargetWorkerSizeId(Integer targetWorkerSizeId)
Set the targetWorkerSizeId property: Scaling worker size ID.
Parameters:
Returns:
withWorkerTierName
public AppServicePlanInner withWorkerTierName(String workerTierName)
Set the workerTierName property: Target worker tier assigned to the App Service plan.
Parameters:
Returns:
withZoneRedundant
public AppServicePlanInner withZoneRedundant(Boolean zoneRedundant)
Set the zoneRedundant property: If true, this App Service Plan will perform availability zone balancing. If false, this App Service Plan will not perform availability zone balancing.
Parameters:
Returns:
workerTierName
public String workerTierName()
Get the workerTierName property: Target worker tier assigned to the App Service plan.
Returns:
zoneRedundant
public Boolean zoneRedundant()
Get the zoneRedundant property: If true, this App Service Plan will perform availability zone balancing. If false, this App Service Plan will not perform availability zone balancing.
Returns: