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 |
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. |
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. |
Integer |
numberOfSites()
Get the number |
Integer |
numberOfWorkers()
Get the number |
Boolean |
perSiteScaling()
Get the per |
Provisioning |
provisioningState()
Get the provisioning |
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. |
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 |
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 |
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 |
withPerSiteScaling(Boolean perSiteScaling)
Set the per |
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 |
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
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:
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:
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:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Provisioning state of the 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:
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.
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:
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:
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:
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:
withTags
public AppServicePlanInner withTags(Map
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:
Applies to
Azure SDK for Java