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
    Constructor
    Description
    Creates an instance of CapacityProfile class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of CapacityProfile from the JsonReader.
    int
    Get the maximumNodes property: The maximum number of execution nodes.
    int
    Get the minimumNodes property: The minimum number of execution nodes.
    com.azure.json.JsonWriter
    toJson(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, wait

    Methods 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

      public CapacityProfile withMinimumNodes(int minimumNodes)
      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

      public CapacityProfile withMaximumNodes(int maximumNodes)
      Set the maximumNodes property: The maximum number of execution nodes.
      Parameters:
      maximumNodes - the maximumNodes value to set.
      Returns:
      the CapacityProfile 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<CapacityProfile>
      Throws:
      IOException
    • fromJson

      public static CapacityProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.