Class AppServicePlanPatchResourceProperties
java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.AppServicePlanPatchResourceProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AppServicePlanPatchResourceProperties>
public final class AppServicePlanPatchResourceProperties
extends Object
implements com.azure.json.JsonSerializable<AppServicePlanPatchResourceProperties>
AppServicePlanPatchResource resource specific properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AppServicePlanPatchResourceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the elasticScaleEnabled property: ServerFarm supports ElasticScale.Get the freeOfferExpirationTime property: The time when the server farm free offer expires.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AppServicePlanPatchResourceProperties 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.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.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.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 provisioningState property: Provisioning state of the 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.Get the spotExpirationTime property: The time when the server farm expires.status()
Get the status property: App Service plan status.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.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withElasticScaleEnabled
(Boolean elasticScaleEnabled) Set the elasticScaleEnabled property: ServerFarm supports ElasticScale.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.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.withKubeEnvironmentProfile
(KubeEnvironmentProfile kubeEnvironmentProfile) Set the kubeEnvironmentProfile property: Specification for the Kubernetes Environment to use for the App Service plan.withMaximumElasticWorkerCount
(Integer maximumElasticWorkerCount) Set the maximumElasticWorkerCount property: Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.withPerSiteScaling
(Boolean perSiteScaling) Set the perSiteScaling property: If <code>true</code>, apps assigned to this App Service plan can be scaled independently.withReserved
(Boolean reserved) Set the reserved property: If Linux app service plan <code>true</code>, <code>false</code> otherwise.withSpotExpirationTime
(OffsetDateTime spotExpirationTime) Set the spotExpirationTime property: The time when the server farm expires.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AppServicePlanPatchResourceProperties
public AppServicePlanPatchResourceProperties()Creates an instance of AppServicePlanPatchResourceProperties class.
-
-
Method Details
-
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 AppServicePlanPatchResourceProperties 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 AppServicePlanPatchResourceProperties 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 AppServicePlanPatchResourceProperties 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 AppServicePlanPatchResourceProperties 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 AppServicePlanPatchResourceProperties object itself.
-
maximumElasticWorkerCount
Get the maximumElasticWorkerCount property: Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.- Returns:
- the maximumElasticWorkerCount value.
-
withMaximumElasticWorkerCount
public AppServicePlanPatchResourceProperties 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 AppServicePlanPatchResourceProperties 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 AppServicePlanPatchResourceProperties 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
public AppServicePlanPatchResourceProperties 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 AppServicePlanPatchResourceProperties object itself.
-
freeOfferExpirationTime
Get the freeOfferExpirationTime property: The time when the server farm free offer expires.- Returns:
- the freeOfferExpirationTime value.
-
withFreeOfferExpirationTime
public AppServicePlanPatchResourceProperties 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 AppServicePlanPatchResourceProperties 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 AppServicePlanPatchResourceProperties 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 AppServicePlanPatchResourceProperties 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 AppServicePlanPatchResourceProperties 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 AppServicePlanPatchResourceProperties 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 AppServicePlanPatchResourceProperties 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 AppServicePlanPatchResourceProperties 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 AppServicePlanPatchResourceProperties 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 AppServicePlanPatchResourceProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<AppServicePlanPatchResourceProperties>
- Throws:
IOException
-
fromJson
public static AppServicePlanPatchResourceProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AppServicePlanPatchResourceProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AppServicePlanPatchResourceProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the AppServicePlanPatchResourceProperties.
-