AutoScaleProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.AutoScaleProfile

Implements

public final class AutoScaleProfile
implements JsonSerializable<AutoScaleProfile>

Specifications on auto-scaling.

Constructor Summary

Constructor Description
AutoScaleProfile()

Creates an instance of AutoScaleProfile class.

Method Summary

Modifier and Type Method and Description
static AutoScaleProfile fromJson(JsonReader jsonReader)

Reads an instance of AutoScaleProfile from the JsonReader.

Integer maxCount()

Get the maxCount property: The maximum number of nodes of the specified sizes.

Integer minCount()

Get the minCount property: The minimum number of nodes of the specified sizes.

String size()

Get the size property: VM size that AKS will use when creating and scaling e.g.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AutoScaleProfile withMaxCount(Integer maxCount)

Set the maxCount property: The maximum number of nodes of the specified sizes.

AutoScaleProfile withMinCount(Integer minCount)

Set the minCount property: The minimum number of nodes of the specified sizes.

AutoScaleProfile withSize(String size)

Set the size property: VM size that AKS will use when creating and scaling e.g.

Methods inherited from java.lang.Object

Constructor Details

AutoScaleProfile

public AutoScaleProfile()

Creates an instance of AutoScaleProfile class.

Method Details

fromJson

public static AutoScaleProfile fromJson(JsonReader jsonReader)

Reads an instance of AutoScaleProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

maxCount

public Integer maxCount()

Get the maxCount property: The maximum number of nodes of the specified sizes.

Returns:

the maxCount value.

minCount

public Integer minCount()

Get the minCount property: The minimum number of nodes of the specified sizes.

Returns:

the minCount value.

size

public String size()

Get the size property: VM size that AKS will use when creating and scaling e.g. 'Standard_E4s_v3', 'Standard_E16s_v3' or 'Standard_D16s_v5'.

Returns:

the size value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMaxCount

public AutoScaleProfile withMaxCount(Integer maxCount)

Set the maxCount property: The maximum number of nodes of the specified sizes.

Parameters:

maxCount - the maxCount value to set.

Returns:

the AutoScaleProfile object itself.

withMinCount

public AutoScaleProfile withMinCount(Integer minCount)

Set the minCount property: The minimum number of nodes of the specified sizes.

Parameters:

minCount - the minCount value to set.

Returns:

the AutoScaleProfile object itself.

withSize

public AutoScaleProfile withSize(String size)

Set the size property: VM size that AKS will use when creating and scaling e.g. 'Standard_E4s_v3', 'Standard_E16s_v3' or 'Standard_D16s_v5'.

Parameters:

size - the size value to set.

Returns:

the AutoScaleProfile object itself.

Applies to