Class ScaleSettings
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScaleSettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ScaleSettings from the JsonReader.intGet the maxNodeCount property: Max number of nodes to use.Get the minNodeCount property: Min number of nodes to use.Get the nodeIdleTimeBeforeScaleDown property: Node Idle Time before scaling down amlCompute.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withMaxNodeCount(int maxNodeCount) Set the maxNodeCount property: Max number of nodes to use.withMinNodeCount(Integer minNodeCount) Set the minNodeCount property: Min number of nodes to use.withNodeIdleTimeBeforeScaleDown(Duration nodeIdleTimeBeforeScaleDown) Set the nodeIdleTimeBeforeScaleDown property: Node Idle Time before scaling down amlCompute.Methods inherited from class java.lang.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
-
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
Set the maxNodeCount property: Max number of nodes to use.- Parameters:
maxNodeCount- the maxNodeCount value to set.- Returns:
- the ScaleSettings object itself.
-
minNodeCount
Get the minNodeCount property: Min number of nodes to use.- Returns:
- the minNodeCount value.
-
withMinNodeCount
Set the minNodeCount property: Min number of nodes to use.- Parameters:
minNodeCount- the minNodeCount value to set.- Returns:
- the ScaleSettings object itself.
-
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
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ScaleSettings>- Throws:
IOException
-
fromJson
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.
-