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 Details

    • CapacityProfileUpdate

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

    • minimumNodes

      public Integer minimumNodes()
      Get the minimumNodes property: The minimum number of execution nodes.
      Returns:
      the minimumNodes value.
    • withMinimumNodes

      public CapacityProfileUpdate withMinimumNodes(Integer minimumNodes)
      Set the minimumNodes property: The minimum number of execution nodes.
      Parameters:
      minimumNodes - the minimumNodes value to set.
      Returns:
      the CapacityProfileUpdate object itself.
    • maximumNodes

      public Integer maximumNodes()
      Get the maximumNodes property: The maximum number of execution nodes.
      Returns:
      the maximumNodes value.
    • withMaximumNodes

      public CapacityProfileUpdate withMaximumNodes(Integer maximumNodes)
      Set the maximumNodes property: The maximum number of execution nodes.
      Parameters:
      maximumNodes - the maximumNodes value to set.
      Returns:
      the CapacityProfileUpdate object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.