Scale Class

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

Implements

public final class Scale
implements JsonSerializable<Scale>

Container App scaling configurations.

Constructor Summary

Constructor Description
Scale()

Creates an instance of Scale class.

Method Summary

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

Reads an instance of Scale from the JsonReader.

Integer maxReplicas()

Get the maxReplicas property: Optional.

Integer minReplicas()

Get the minReplicas property: Optional.

List<ScaleRule> rules()

Get the rules property: Scaling rules.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Scale withMaxReplicas(Integer maxReplicas)

Set the maxReplicas property: Optional.

Scale withMinReplicas(Integer minReplicas)

Set the minReplicas property: Optional.

Scale withRules(List<ScaleRule> rules)

Set the rules property: Scaling rules.

Methods inherited from java.lang.Object

Constructor Details

Scale

public Scale()

Creates an instance of Scale class.

Method Details

fromJson

public static Scale fromJson(JsonReader jsonReader)

Reads an instance of Scale from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

maxReplicas

public Integer maxReplicas()

Get the maxReplicas property: Optional. Maximum number of container replicas. Defaults to 10 if not set.

Returns:

the maxReplicas value.

minReplicas

public Integer minReplicas()

Get the minReplicas property: Optional. Minimum number of container replicas.

Returns:

the minReplicas value.

rules

public List rules()

Get the rules property: Scaling rules.

Returns:

the rules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMaxReplicas

public Scale withMaxReplicas(Integer maxReplicas)

Set the maxReplicas property: Optional. Maximum number of container replicas. Defaults to 10 if not set.

Parameters:

maxReplicas - the maxReplicas value to set.

Returns:

the Scale object itself.

withMinReplicas

public Scale withMinReplicas(Integer minReplicas)

Set the minReplicas property: Optional. Minimum number of container replicas.

Parameters:

minReplicas - the minReplicas value to set.

Returns:

the Scale object itself.

withRules

public Scale withRules(List rules)

Set the rules property: Scaling rules.

Parameters:

rules - the rules value to set.

Returns:

the Scale object itself.

Applies to