SkuCapacity Class

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

Implements

public final class SkuCapacity
implements JsonSerializable<SkuCapacity>

The SKU capacity.

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: Gets or sets the default.

static SkuCapacity fromJson(JsonReader jsonReader)

Reads an instance of SkuCapacity from the JsonReader.

Integer maximum()

Get the maximum property: Gets or sets the maximum.

int minimum()

Get the minimum property: Gets or sets the minimum.

SkuScaleType scaleType()

Get the scaleType property: Gets or sets the type of the scale.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SkuCapacity withDefaultProperty(Integer defaultProperty)

Set the defaultProperty property: Gets or sets the default.

SkuCapacity withMaximum(Integer maximum)

Set the maximum property: Gets or sets the maximum.

SkuCapacity withMinimum(int minimum)

Set the minimum property: Gets or sets the minimum.

SkuCapacity withScaleType(SkuScaleType scaleType)

Set the scaleType property: Gets or sets the type of the scale.

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: Gets or sets the default.

Returns:

the defaultProperty 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 the deserialized JSON object was missing any required properties.

maximum

public Integer maximum()

Get the maximum property: Gets or sets the maximum.

Returns:

the maximum value.

minimum

public int minimum()

Get the minimum property: Gets or sets the minimum.

Returns:

the minimum value.

scaleType

public SkuScaleType scaleType()

Get the scaleType property: Gets or sets the type of the scale.

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: Gets or sets the default.

Parameters:

defaultProperty - the defaultProperty value to set.

Returns:

the SkuCapacity object itself.

withMaximum

public SkuCapacity withMaximum(Integer maximum)

Set the maximum property: Gets or sets the maximum.

Parameters:

maximum - the maximum value to set.

Returns:

the SkuCapacity object itself.

withMinimum

public SkuCapacity withMinimum(int minimum)

Set the minimum property: Gets or sets the minimum.

Parameters:

minimum - the minimum value to set.

Returns:

the SkuCapacity object itself.

withScaleType

public SkuCapacity withScaleType(SkuScaleType scaleType)

Set the scaleType property: Gets or sets the type of the scale.

Parameters:

scaleType - the scaleType value to set.

Returns:

the SkuCapacity object itself.

Applies to