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 Summary
ConstructorsConstructorDescriptionCreates an instance of JavaComponentPropertiesScale class. -
Method Summary
Modifier and TypeMethodDescriptionstatic JavaComponentPropertiesScale
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of JavaComponentPropertiesScale from the JsonReader.Get the maxReplicas property: Optional.Get the minReplicas property: Optional.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withMaxReplicas
(Integer maxReplicas) Set the maxReplicas property: Optional.withMinReplicas
(Integer minReplicas) Set the minReplicas property: Optional.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
JavaComponentPropertiesScale
public JavaComponentPropertiesScale()Creates an instance of JavaComponentPropertiesScale class.
-
-
Method Details
-
minReplicas
Get the minReplicas property: Optional. Minimum number of Java component replicas. Defaults to 1 if not set.- Returns:
- the minReplicas value.
-
withMinReplicas
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
Get the maxReplicas property: Optional. Maximum number of Java component replicas.- Returns:
- the maxReplicas value.
-
withMaxReplicas
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
- Specified by:
toJson
in interfacecom.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.
-