Class ScaleSettings


  • public final class ScaleSettings
    extends Object
    scale settings for AML Compute.
    • Constructor Detail

      • ScaleSettings

        public ScaleSettings()
    • 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.