Class ScaleSettings
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.ScaleSettings
-
public final class ScaleSettings extends Object
scale settings for AML Compute.
-
-
Constructor Summary
Constructors Constructor Description ScaleSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
maxNodeCount()
Get the maxNodeCount property: Max number of nodes to use.Integer
minNodeCount()
Get the minNodeCount property: Min number of nodes to use.Duration
nodeIdleTimeBeforeScaleDown()
Get the nodeIdleTimeBeforeScaleDown property: Node Idle Time before scaling down amlCompute.void
validate()
Validates the instance.ScaleSettings
withMaxNodeCount(int maxNodeCount)
Set the maxNodeCount property: Max number of nodes to use.ScaleSettings
withMinNodeCount(Integer minNodeCount)
Set the minNodeCount property: Min number of nodes to use.ScaleSettings
withNodeIdleTimeBeforeScaleDown(Duration nodeIdleTimeBeforeScaleDown)
Set the nodeIdleTimeBeforeScaleDown property: Node Idle Time before scaling down amlCompute.
-
-
-
Method Detail
-
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.
-
-