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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScaleConfigurationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ScaleConfiguration from the JsonReader.Get the maxConcurrentSessions property: The maximum count of sessions at the same time.Get the readySessionInstances property: The minimum count of ready session instances.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withMaxConcurrentSessions(Integer maxConcurrentSessions) Set the maxConcurrentSessions property: The maximum count of sessions at the same time.withReadySessionInstances(Integer readySessionInstances) Set the readySessionInstances property: The minimum count of ready session instances.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ScaleConfiguration
public ScaleConfiguration()Creates an instance of ScaleConfiguration class.
-
-
Method Details
-
maxConcurrentSessions
Get the maxConcurrentSessions property: The maximum count of sessions at the same time.- Returns:
- the maxConcurrentSessions value.
-
withMaxConcurrentSessions
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
Get the readySessionInstances property: The minimum count of ready session instances.- Returns:
- the readySessionInstances value.
-
withReadySessionInstances
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ScaleConfiguration>- Throws:
IOException
-
fromJson
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.
-