Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.appservice.implementation; import com.microsoft.azure.management.appservice.StatusOptions; import com.microsoft.azure.management.appservice.HostingEnvironmentProfile; import org.joda.time.DateTime; import com.microsoft.azure.management.appservice.ProvisioningState; import com.microsoft.azure.management.appservice.SkuDescription; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.Resource;
App Service plan.
/** * App Service plan. */
@JsonFlatten public class AppServicePlanInner extends Resource {
Target worker tier assigned to the App Service plan.
/** * Target worker tier assigned to the App Service plan. */
@JsonProperty(value = "properties.workerTierName") private String workerTierName;
App Service plan status. Possible values include: 'Ready', 'Pending', 'Creating'.
/** * App Service plan status. Possible values include: 'Ready', 'Pending', * 'Creating'. */
@JsonProperty(value = "properties.status", access = JsonProperty.Access.WRITE_ONLY) private StatusOptions status;
App Service plan subscription.
/** * App Service plan subscription. */
@JsonProperty(value = "properties.subscription", access = JsonProperty.Access.WRITE_ONLY) private String subscription;
Specification for the App Service Environment to use for the App Service plan.
/** * Specification for the App Service Environment to use for the App Service * plan. */
@JsonProperty(value = "properties.hostingEnvironmentProfile") private HostingEnvironmentProfile hostingEnvironmentProfile;
Maximum number of instances that can be assigned to this App Service plan.
/** * Maximum number of instances that can be assigned to this App Service * plan. */
@JsonProperty(value = "properties.maximumNumberOfWorkers", access = JsonProperty.Access.WRITE_ONLY) private Integer maximumNumberOfWorkers;
Geographical location for the App Service plan.
/** * Geographical location for the App Service plan. */
@JsonProperty(value = "properties.geoRegion", access = JsonProperty.Access.WRITE_ONLY) private String geoRegion;
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.
/** * If &lt;code&gt;true&lt;/code&gt;, apps assigned to this App Service plan * can be scaled independently. * If &lt;code&gt;false&lt;/code&gt;, apps assigned to this App Service * plan will scale to all instances of the plan. */
@JsonProperty(value = "properties.perSiteScaling") private Boolean perSiteScaling;
Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.
/** * Maximum number of total workers allowed for this ElasticScaleEnabled App * Service Plan. */
@JsonProperty(value = "properties.maximumElasticWorkerCount") private Integer maximumElasticWorkerCount;
Number of apps assigned to this App Service plan.
/** * Number of apps assigned to this App Service plan. */
@JsonProperty(value = "properties.numberOfSites", access = JsonProperty.Access.WRITE_ONLY) private Integer numberOfSites;
If <code>true</code>, this App Service Plan owns spot instances.
/** * If &lt;code&gt;true&lt;/code&gt;, this App Service Plan owns spot * instances. */
@JsonProperty(value = "properties.isSpot") private Boolean isSpot;
The time when the server farm expires. Valid only if it is a spot server farm.
/** * The time when the server farm expires. Valid only if it is a spot server * farm. */
@JsonProperty(value = "properties.spotExpirationTime") private DateTime spotExpirationTime;
The time when the server farm free offer expires.
/** * The time when the server farm free offer expires. */
@JsonProperty(value = "properties.freeOfferExpirationTime") private DateTime freeOfferExpirationTime;
Resource group of the App Service plan.
/** * Resource group of the App Service plan. */
@JsonProperty(value = "properties.resourceGroup", access = JsonProperty.Access.WRITE_ONLY) private String resourceGroup;
If Linux app service plan <code>true</code>, <code>false</code> otherwise.
/** * If Linux app service plan &lt;code&gt;true&lt;/code&gt;, * &lt;code&gt;false&lt;/code&gt; otherwise. */
@JsonProperty(value = "properties.reserved") private Boolean reserved;
Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.
/** * Obsolete: If Hyper-V container app service plan * &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt; otherwise. */
@JsonProperty(value = "properties.isXenon") private Boolean isXenon;
If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.
/** * If Hyper-V container app service plan &lt;code&gt;true&lt;/code&gt;, * &lt;code&gt;false&lt;/code&gt; otherwise. */
@JsonProperty(value = "properties.hyperV") private Boolean hyperV;
Scaling worker count.
/** * Scaling worker count. */
@JsonProperty(value = "properties.targetWorkerCount") private Integer targetWorkerCount;
Scaling worker size ID.
/** * Scaling worker size ID. */
@JsonProperty(value = "properties.targetWorkerSizeId") private Integer targetWorkerSizeId;
Provisioning state of the App Service Environment. Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress', 'Deleting'.
/** * Provisioning state of the App Service Environment. Possible values * include: 'Succeeded', 'Failed', 'Canceled', 'InProgress', 'Deleting'. */
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState;
The sku property.
/** * The sku property. */
@JsonProperty(value = "sku") private SkuDescription sku;
Kind of resource.
/** * Kind of resource. */
@JsonProperty(value = "kind") private String kind;
Get target worker tier assigned to the App Service plan.
Returns:the workerTierName value
/** * Get target worker tier assigned to the App Service plan. * * @return the workerTierName value */
public String workerTierName() { return this.workerTierName; }
Set target worker tier assigned to the App Service plan.
Params:
  • workerTierName – the workerTierName value to set
Returns:the AppServicePlanInner object itself.
/** * Set target worker tier assigned to the App Service plan. * * @param workerTierName the workerTierName value to set * @return the AppServicePlanInner object itself. */
public AppServicePlanInner withWorkerTierName(String workerTierName) { this.workerTierName = workerTierName; return this; }
Get app Service plan status. Possible values include: 'Ready', 'Pending', 'Creating'.
Returns:the status value
/** * Get app Service plan status. Possible values include: 'Ready', 'Pending', 'Creating'. * * @return the status value */
public StatusOptions status() { return this.status; }
Get app Service plan subscription.
Returns:the subscription value
/** * Get app Service plan subscription. * * @return the subscription value */
public String subscription() { return this.subscription; }
Get specification for the App Service Environment to use for the App Service plan.
Returns:the hostingEnvironmentProfile value
/** * Get specification for the App Service Environment to use for the App Service plan. * * @return the hostingEnvironmentProfile value */
public HostingEnvironmentProfile hostingEnvironmentProfile() { return this.hostingEnvironmentProfile; }
Set specification for the App Service Environment to use for the App Service plan.
Params:
  • hostingEnvironmentProfile – the hostingEnvironmentProfile value to set
Returns:the AppServicePlanInner object itself.
/** * Set specification for the App Service Environment to use for the App Service plan. * * @param hostingEnvironmentProfile the hostingEnvironmentProfile value to set * @return the AppServicePlanInner object itself. */
public AppServicePlanInner withHostingEnvironmentProfile(HostingEnvironmentProfile hostingEnvironmentProfile) { this.hostingEnvironmentProfile = hostingEnvironmentProfile; return this; }
Get maximum number of instances that can be assigned to this App Service plan.
Returns:the maximumNumberOfWorkers value
/** * Get maximum number of instances that can be assigned to this App Service plan. * * @return the maximumNumberOfWorkers value */
public Integer maximumNumberOfWorkers() { return this.maximumNumberOfWorkers; }
Get geographical location for the App Service plan.
Returns:the geoRegion value
/** * Get geographical location for the App Service plan. * * @return the geoRegion value */
public String geoRegion() { return this.geoRegion; }
Get 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
/** * Get if &lt;code&gt;true&lt;/code&gt;, apps assigned to this App Service plan can be scaled independently. If &lt;code&gt;false&lt;/code&gt;, apps assigned to this App Service plan will scale to all instances of the plan. * * @return the perSiteScaling value */
public Boolean perSiteScaling() { return this.perSiteScaling; }
Set 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.
Params:
  • perSiteScaling – the perSiteScaling value to set
Returns:the AppServicePlanInner object itself.
/** * Set if &lt;code&gt;true&lt;/code&gt;, apps assigned to this App Service plan can be scaled independently. If &lt;code&gt;false&lt;/code&gt;, apps assigned to this App Service plan will scale to all instances of the plan. * * @param perSiteScaling the perSiteScaling value to set * @return the AppServicePlanInner object itself. */
public AppServicePlanInner withPerSiteScaling(Boolean perSiteScaling) { this.perSiteScaling = perSiteScaling; return this; }
Get maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.
Returns:the maximumElasticWorkerCount value
/** * Get maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan. * * @return the maximumElasticWorkerCount value */
public Integer maximumElasticWorkerCount() { return this.maximumElasticWorkerCount; }
Set maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.
Params:
  • maximumElasticWorkerCount – the maximumElasticWorkerCount value to set
Returns:the AppServicePlanInner object itself.
/** * Set maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan. * * @param maximumElasticWorkerCount the maximumElasticWorkerCount value to set * @return the AppServicePlanInner object itself. */
public AppServicePlanInner withMaximumElasticWorkerCount(Integer maximumElasticWorkerCount) { this.maximumElasticWorkerCount = maximumElasticWorkerCount; return this; }
Get number of apps assigned to this App Service plan.
Returns:the numberOfSites value
/** * Get number of apps assigned to this App Service plan. * * @return the numberOfSites value */
public Integer numberOfSites() { return this.numberOfSites; }
Get if <code>true</code>, this App Service Plan owns spot instances.
Returns:the isSpot value
/** * Get if &lt;code&gt;true&lt;/code&gt;, this App Service Plan owns spot instances. * * @return the isSpot value */
public Boolean isSpot() { return this.isSpot; }
Set if <code>true</code>, this App Service Plan owns spot instances.
Params:
  • isSpot – the isSpot value to set
Returns:the AppServicePlanInner object itself.
/** * Set if &lt;code&gt;true&lt;/code&gt;, this App Service Plan owns spot instances. * * @param isSpot the isSpot value to set * @return the AppServicePlanInner object itself. */
public AppServicePlanInner withIsSpot(Boolean isSpot) { this.isSpot = isSpot; return this; }
Get the time when the server farm expires. Valid only if it is a spot server farm.
Returns:the spotExpirationTime value
/** * Get the time when the server farm expires. Valid only if it is a spot server farm. * * @return the spotExpirationTime value */
public DateTime spotExpirationTime() { return this.spotExpirationTime; }
Set the time when the server farm expires. Valid only if it is a spot server farm.
Params:
  • spotExpirationTime – the spotExpirationTime value to set
Returns:the AppServicePlanInner object itself.
/** * Set the time when the server farm expires. Valid only if it is a spot server farm. * * @param spotExpirationTime the spotExpirationTime value to set * @return the AppServicePlanInner object itself. */
public AppServicePlanInner withSpotExpirationTime(DateTime spotExpirationTime) { this.spotExpirationTime = spotExpirationTime; return this; }
Get the time when the server farm free offer expires.
Returns:the freeOfferExpirationTime value
/** * Get the time when the server farm free offer expires. * * @return the freeOfferExpirationTime value */
public DateTime freeOfferExpirationTime() { return this.freeOfferExpirationTime; }
Set the time when the server farm free offer expires.
Params:
  • freeOfferExpirationTime – the freeOfferExpirationTime value to set
Returns:the AppServicePlanInner object itself.
/** * Set the time when the server farm free offer expires. * * @param freeOfferExpirationTime the freeOfferExpirationTime value to set * @return the AppServicePlanInner object itself. */
public AppServicePlanInner withFreeOfferExpirationTime(DateTime freeOfferExpirationTime) { this.freeOfferExpirationTime = freeOfferExpirationTime; return this; }
Get resource group of the App Service plan.
Returns:the resourceGroup value
/** * Get resource group of the App Service plan. * * @return the resourceGroup value */
public String resourceGroup() { return this.resourceGroup; }
Get if Linux app service plan <code>true</code>, <code>false</code> otherwise.
Returns:the reserved value
/** * Get if Linux app service plan &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt; otherwise. * * @return the reserved value */
public Boolean reserved() { return this.reserved; }
Set if Linux app service plan <code>true</code>, <code>false</code> otherwise.
Params:
  • reserved – the reserved value to set
Returns:the AppServicePlanInner object itself.
/** * Set if Linux app service plan &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt; otherwise. * * @param reserved the reserved value to set * @return the AppServicePlanInner object itself. */
public AppServicePlanInner withReserved(Boolean reserved) { this.reserved = reserved; return this; }
Get obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.
Returns:the isXenon value
/** * Get obsolete: If Hyper-V container app service plan &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt; otherwise. * * @return the isXenon value */
public Boolean isXenon() { return this.isXenon; }
Set obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.
Params:
  • isXenon – the isXenon value to set
Returns:the AppServicePlanInner object itself.
/** * Set obsolete: If Hyper-V container app service plan &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt; otherwise. * * @param isXenon the isXenon value to set * @return the AppServicePlanInner object itself. */
public AppServicePlanInner withIsXenon(Boolean isXenon) { this.isXenon = isXenon; return this; }
Get if Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.
Returns:the hyperV value
/** * Get if Hyper-V container app service plan &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt; otherwise. * * @return the hyperV value */
public Boolean hyperV() { return this.hyperV; }
Set if Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.
Params:
  • hyperV – the hyperV value to set
Returns:the AppServicePlanInner object itself.
/** * Set if Hyper-V container app service plan &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt; otherwise. * * @param hyperV the hyperV value to set * @return the AppServicePlanInner object itself. */
public AppServicePlanInner withHyperV(Boolean hyperV) { this.hyperV = hyperV; return this; }
Get scaling worker count.
Returns:the targetWorkerCount value
/** * Get scaling worker count. * * @return the targetWorkerCount value */
public Integer targetWorkerCount() { return this.targetWorkerCount; }
Set scaling worker count.
Params:
  • targetWorkerCount – the targetWorkerCount value to set
Returns:the AppServicePlanInner object itself.
/** * Set scaling worker count. * * @param targetWorkerCount the targetWorkerCount value to set * @return the AppServicePlanInner object itself. */
public AppServicePlanInner withTargetWorkerCount(Integer targetWorkerCount) { this.targetWorkerCount = targetWorkerCount; return this; }
Get scaling worker size ID.
Returns:the targetWorkerSizeId value
/** * Get scaling worker size ID. * * @return the targetWorkerSizeId value */
public Integer targetWorkerSizeId() { return this.targetWorkerSizeId; }
Set scaling worker size ID.
Params:
  • targetWorkerSizeId – the targetWorkerSizeId value to set
Returns:the AppServicePlanInner object itself.
/** * Set scaling worker size ID. * * @param targetWorkerSizeId the targetWorkerSizeId value to set * @return the AppServicePlanInner object itself. */
public AppServicePlanInner withTargetWorkerSizeId(Integer targetWorkerSizeId) { this.targetWorkerSizeId = targetWorkerSizeId; return this; }
Get provisioning state of the App Service Environment. Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress', 'Deleting'.
Returns:the provisioningState value
/** * Get provisioning state of the App Service Environment. Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress', 'Deleting'. * * @return the provisioningState value */
public ProvisioningState provisioningState() { return this.provisioningState; }
Get the sku value.
Returns:the sku value
/** * Get the sku value. * * @return the sku value */
public SkuDescription sku() { return this.sku; }
Set the sku value.
Params:
  • sku – the sku value to set
Returns:the AppServicePlanInner object itself.
/** * Set the sku value. * * @param sku the sku value to set * @return the AppServicePlanInner object itself. */
public AppServicePlanInner withSku(SkuDescription sku) { this.sku = sku; return this; }
Get kind of resource.
Returns:the kind value
/** * Get kind of resource. * * @return the kind value */
public String kind() { return this.kind; }
Set kind of resource.
Params:
  • kind – the kind value to set
Returns:the AppServicePlanInner object itself.
/** * Set kind of resource. * * @param kind the kind value to set * @return the AppServicePlanInner object itself. */
public AppServicePlanInner withKind(String kind) { this.kind = kind; return this; } }