Scale Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. Scale
- com.
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 Json |
Integer |
maxReplicas()
Get the max |
Integer |
minReplicas()
Get the min |
List<Scale |
rules()
Get the rules property: Scaling rules. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Scale |
withMaxReplicas(Integer maxReplicas)
Set the max |
Scale |
withMinReplicas(Integer minReplicas)
Set the min |
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:
Returns:
Throws:
maxReplicas
public Integer maxReplicas()
Get the maxReplicas property: Optional. Maximum number of container replicas. Defaults to 10 if not set.
Returns:
minReplicas
public Integer minReplicas()
Get the minReplicas property: Optional. Minimum number of container replicas.
Returns:
rules
public List
Get the rules property: Scaling rules.
Returns:
toJson
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:
Returns:
withMinReplicas
public Scale withMinReplicas(Integer minReplicas)
Set the minReplicas property: Optional. Minimum number of container replicas.
Parameters:
Returns:
withRules
public Scale withRules(List
Set the rules property: Scaling rules.
Parameters:
Returns:
Applies to
Azure SDK for Java