SkuCapacity Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.SkuCapacity

Implements

public final class SkuCapacity
implements JsonSerializable<SkuCapacity>

Description of the App Service plan scale options.

Constructor Summary

Constructor Description
SkuCapacity()

Creates an instance of SkuCapacity class.

Method Summary

Modifier and Type Method and Description
Integer defaultProperty()

Get the defaultProperty property: Default number of workers for this App Service plan SKU.

Integer elasticMaximum()

Get the elasticMaximum property: Maximum number of Elastic workers for this App Service plan SKU.

static SkuCapacity fromJson(JsonReader jsonReader)

Reads an instance of SkuCapacity from the JsonReader.

Integer maximum()

Get the maximum property: Maximum number of workers for this App Service plan SKU.

Integer minimum()

Get the minimum property: Minimum number of workers for this App Service plan SKU.

String scaleType()

Get the scaleType property: Available scale configurations for an App Service plan.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SkuCapacity withDefaultProperty(Integer defaultProperty)

Set the defaultProperty property: Default number of workers for this App Service plan SKU.

SkuCapacity withElasticMaximum(Integer elasticMaximum)

Set the elasticMaximum property: Maximum number of Elastic workers for this App Service plan SKU.

SkuCapacity withMaximum(Integer maximum)

Set the maximum property: Maximum number of workers for this App Service plan SKU.

SkuCapacity withMinimum(Integer minimum)

Set the minimum property: Minimum number of workers for this App Service plan SKU.

SkuCapacity withScaleType(String scaleType)

Set the scaleType property: Available scale configurations for an App Service plan.

Methods inherited from java.lang.Object

Constructor Details

SkuCapacity

public SkuCapacity()

Creates an instance of SkuCapacity class.

Method Details

defaultProperty

public Integer defaultProperty()

Get the defaultProperty property: Default number of workers for this App Service plan SKU.

Returns:

the defaultProperty value.

elasticMaximum

public Integer elasticMaximum()

Get the elasticMaximum property: Maximum number of Elastic workers for this App Service plan SKU.

Returns:

the elasticMaximum value.

fromJson

public static SkuCapacity fromJson(JsonReader jsonReader)

Reads an instance of SkuCapacity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SkuCapacity 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 SkuCapacity.

maximum

public Integer maximum()

Get the maximum property: Maximum number of workers for this App Service plan SKU.

Returns:

the maximum value.

minimum

public Integer minimum()

Get the minimum property: Minimum number of workers for this App Service plan SKU.

Returns:

the minimum value.

scaleType

public String scaleType()

Get the scaleType property: Available scale configurations for an App Service plan.

Returns:

the scaleType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDefaultProperty

public SkuCapacity withDefaultProperty(Integer defaultProperty)

Set the defaultProperty property: Default number of workers for this App Service plan SKU.

Parameters:

defaultProperty - the defaultProperty value to set.

Returns:

the SkuCapacity object itself.

withElasticMaximum

public SkuCapacity withElasticMaximum(Integer elasticMaximum)

Set the elasticMaximum property: Maximum number of Elastic workers for this App Service plan SKU.

Parameters:

elasticMaximum - the elasticMaximum value to set.

Returns:

the SkuCapacity object itself.

withMaximum

public SkuCapacity withMaximum(Integer maximum)

Set the maximum property: Maximum number of workers for this App Service plan SKU.

Parameters:

maximum - the maximum value to set.

Returns:

the SkuCapacity object itself.

withMinimum

public SkuCapacity withMinimum(Integer minimum)

Set the minimum property: Minimum number of workers for this App Service plan SKU.

Parameters:

minimum - the minimum value to set.

Returns:

the SkuCapacity object itself.

withScaleType

public SkuCapacity withScaleType(String scaleType)

Set the scaleType property: Available scale configurations for an App Service plan.

Parameters:

scaleType - the scaleType value to set.

Returns:

the SkuCapacity object itself.

Applies to