Class ScaleConfiguration

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

public final class ScaleConfiguration extends Object implements com.azure.json.JsonSerializable<ScaleConfiguration>
Scale configuration.
  • Constructor Details

    • ScaleConfiguration

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

    • maxConcurrentSessions

      public Integer maxConcurrentSessions()
      Get the maxConcurrentSessions property: The maximum count of sessions at the same time.
      Returns:
      the maxConcurrentSessions value.
    • withMaxConcurrentSessions

      public ScaleConfiguration withMaxConcurrentSessions(Integer maxConcurrentSessions)
      Set the maxConcurrentSessions property: The maximum count of sessions at the same time.
      Parameters:
      maxConcurrentSessions - the maxConcurrentSessions value to set.
      Returns:
      the ScaleConfiguration object itself.
    • readySessionInstances

      public Integer readySessionInstances()
      Get the readySessionInstances property: The minimum count of ready session instances.
      Returns:
      the readySessionInstances value.
    • withReadySessionInstances

      public ScaleConfiguration withReadySessionInstances(Integer readySessionInstances)
      Set the readySessionInstances property: The minimum count of ready session instances.
      Parameters:
      readySessionInstances - the readySessionInstances value to set.
      Returns:
      the ScaleConfiguration 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<ScaleConfiguration>
      Throws:
      IOException
    • fromJson

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