java.lang.Object
com.azure.resourcemanager.machinelearning.models.ScaleSettings
All Implemented Interfaces:
com.azure.json.JsonSerializable<ScaleSettings>

public final class ScaleSettings extends Object implements com.azure.json.JsonSerializable<ScaleSettings>
scale settings for AML Compute.
  • Constructor Details

    • ScaleSettings

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

    • maxNodeCount

      public int maxNodeCount()
      Get the maxNodeCount property: Max number of nodes to use.
      Returns:
      the maxNodeCount value.
    • withMaxNodeCount

      public ScaleSettings withMaxNodeCount(int maxNodeCount)
      Set the maxNodeCount property: Max number of nodes to use.
      Parameters:
      maxNodeCount - the maxNodeCount value to set.
      Returns:
      the ScaleSettings object itself.
    • minNodeCount

      public Integer minNodeCount()
      Get the minNodeCount property: Min number of nodes to use.
      Returns:
      the minNodeCount value.
    • withMinNodeCount

      public ScaleSettings withMinNodeCount(Integer minNodeCount)
      Set the minNodeCount property: Min number of nodes to use.
      Parameters:
      minNodeCount - the minNodeCount value to set.
      Returns:
      the ScaleSettings object itself.
    • nodeIdleTimeBeforeScaleDown

      public Duration nodeIdleTimeBeforeScaleDown()
      Get the nodeIdleTimeBeforeScaleDown property: Node Idle Time before scaling down amlCompute. This string needs to be in the RFC Format.
      Returns:
      the nodeIdleTimeBeforeScaleDown value.
    • withNodeIdleTimeBeforeScaleDown

      public ScaleSettings withNodeIdleTimeBeforeScaleDown(Duration nodeIdleTimeBeforeScaleDown)
      Set the nodeIdleTimeBeforeScaleDown property: Node Idle Time before scaling down amlCompute. This string needs to be in the RFC Format.
      Parameters:
      nodeIdleTimeBeforeScaleDown - the nodeIdleTimeBeforeScaleDown value to set.
      Returns:
      the ScaleSettings object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ScaleSettings>
      Throws:
      IOException
    • fromJson

      public static ScaleSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ScaleSettings from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ScaleSettings 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 ScaleSettings.