Class Scale
- java.lang.Object
-
- com.azure.resourcemanager.appcontainers.models.Scale
-
public final class Scale extends Object
Container App scaling configurations.
-
-
Constructor Summary
Constructors Constructor Description Scale()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
maxReplicas()
Get the maxReplicas property: Optional.Integer
minReplicas()
Get the minReplicas property: Optional.List<ScaleRule>
rules()
Get the rules property: Scaling rules.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.
-
-
-
Method Detail
-
minReplicas
public Integer minReplicas()
Get the minReplicas property: Optional. Minimum number of container replicas.- Returns:
- the minReplicas value.
-
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.
-
maxReplicas
public Integer maxReplicas()
Get the maxReplicas property: Optional. Maximum number of container replicas. Defaults to 10 if not set.- Returns:
- the maxReplicas value.
-
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.
-
rules
public List<ScaleRule> rules()
Get the rules property: Scaling rules.- Returns:
- the rules value.
-
withRules
public Scale withRules(List<ScaleRule> rules)
Set the rules property: Scaling rules.- Parameters:
rules
- the rules value to set.- Returns:
- the Scale object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-