Class CapacityProfile
java.lang.Object
com.azure.resourcemanager.compute.workloadmanager.models.CapacityProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CapacityProfile>
public final class CapacityProfile
extends Object
implements com.azure.json.JsonSerializable<CapacityProfile>
Capacity policy for the runtime composition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CapacityProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CapacityProfile from the JsonReader.intGet the maximumNodes property: The maximum number of execution nodes.intGet the minimumNodes property: The minimum number of execution nodes.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) withMaximumNodes(int maximumNodes) Set the maximumNodes property: The maximum number of execution nodes.withMinimumNodes(int minimumNodes) Set the minimumNodes property: The minimum number of execution nodes.Methods inherited from class 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
-
CapacityProfile
public CapacityProfile()Creates an instance of CapacityProfile class.
-
-
Method Details
-
minimumNodes
public int minimumNodes()Get the minimumNodes property: The minimum number of execution nodes.- Returns:
- the minimumNodes value.
-
withMinimumNodes
Set the minimumNodes property: The minimum number of execution nodes.- Parameters:
minimumNodes- the minimumNodes value to set.- Returns:
- the CapacityProfile object itself.
-
maximumNodes
public int maximumNodes()Get the maximumNodes property: The maximum number of execution nodes.- Returns:
- the maximumNodes value.
-
withMaximumNodes
Set the maximumNodes property: The maximum number of execution nodes.- Parameters:
maximumNodes- the maximumNodes value to set.- Returns:
- the CapacityProfile object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CapacityProfile>- Throws:
IOException
-
fromJson
Reads an instance of CapacityProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CapacityProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the CapacityProfile.
-