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

public final class Scale extends Object
Container App scaling configurations.
  • Constructor Details

    • Scale

      public Scale()
  • Method Details

    • 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.