Class JavaComponentPropertiesScale

java.lang.Object
com.azure.resourcemanager.appcontainers.models.JavaComponentPropertiesScale
All Implemented Interfaces:
com.azure.json.JsonSerializable<JavaComponentPropertiesScale>

public final class JavaComponentPropertiesScale extends Object implements com.azure.json.JsonSerializable<JavaComponentPropertiesScale>
Java component scaling configurations.
  • Constructor Details

    • JavaComponentPropertiesScale

      public JavaComponentPropertiesScale()
      Creates an instance of JavaComponentPropertiesScale class.
  • Method Details

    • minReplicas

      public Integer minReplicas()
      Get the minReplicas property: Optional. Minimum number of Java component replicas. Defaults to 1 if not set.
      Returns:
      the minReplicas value.
    • withMinReplicas

      public JavaComponentPropertiesScale withMinReplicas(Integer minReplicas)
      Set the minReplicas property: Optional. Minimum number of Java component replicas. Defaults to 1 if not set.
      Parameters:
      minReplicas - the minReplicas value to set.
      Returns:
      the JavaComponentPropertiesScale object itself.
    • maxReplicas

      public Integer maxReplicas()
      Get the maxReplicas property: Optional. Maximum number of Java component replicas.
      Returns:
      the maxReplicas value.
    • withMaxReplicas

      public JavaComponentPropertiesScale withMaxReplicas(Integer maxReplicas)
      Set the maxReplicas property: Optional. Maximum number of Java component replicas.
      Parameters:
      maxReplicas - the maxReplicas value to set.
      Returns:
      the JavaComponentPropertiesScale object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<JavaComponentPropertiesScale>
      Throws:
      IOException
    • fromJson

      public static JavaComponentPropertiesScale fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of JavaComponentPropertiesScale from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of JavaComponentPropertiesScale 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 JavaComponentPropertiesScale.