Class CapacityProfileUpdate
java.lang.Object
com.azure.resourcemanager.compute.workloadmanager.models.CapacityProfileUpdate
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CapacityProfileUpdate>
public final class CapacityProfileUpdate
extends Object
implements com.azure.json.JsonSerializable<CapacityProfileUpdate>
Capacity policy values that may be updated for the runtime composition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CapacityProfileUpdatefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CapacityProfileUpdate from the JsonReader.Get the maximumNodes property: The maximum number of execution nodes.Get the minimumNodes property: The minimum number of execution nodes.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) withMaximumNodes(Integer maximumNodes) Set the maximumNodes property: The maximum number of execution nodes.withMinimumNodes(Integer 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
-
CapacityProfileUpdate
public CapacityProfileUpdate()Creates an instance of CapacityProfileUpdate class.
-
-
Method Details
-
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 CapacityProfileUpdate object itself.
-
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 CapacityProfileUpdate object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CapacityProfileUpdate>- Throws:
IOException
-
fromJson
public static CapacityProfileUpdate fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CapacityProfileUpdate from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CapacityProfileUpdate 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 CapacityProfileUpdate.
-