Class TargetUtilizationScaleSettings
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.OnlineScaleSettings
-
- com.azure.resourcemanager.machinelearning.models.TargetUtilizationScaleSettings
-
public final class TargetUtilizationScaleSettings extends OnlineScaleSettings
The TargetUtilizationScaleSettings model.
-
-
Constructor Summary
Constructors Constructor Description TargetUtilizationScaleSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
maxInstances()
Get the maxInstances property: The maximum number of instances that the deployment can scale to.Integer
minInstances()
Get the minInstances property: The minimum number of instances to always be present.Duration
pollingInterval()
Get the pollingInterval property: The polling interval in ISO 8691 format.Integer
targetUtilizationPercentage()
Get the targetUtilizationPercentage property: Target CPU usage for the autoscaler.void
validate()
Validates the instance.TargetUtilizationScaleSettings
withMaxInstances(Integer maxInstances)
Set the maxInstances property: The maximum number of instances that the deployment can scale to.TargetUtilizationScaleSettings
withMinInstances(Integer minInstances)
Set the minInstances property: The minimum number of instances to always be present.TargetUtilizationScaleSettings
withPollingInterval(Duration pollingInterval)
Set the pollingInterval property: The polling interval in ISO 8691 format.TargetUtilizationScaleSettings
withTargetUtilizationPercentage(Integer targetUtilizationPercentage)
Set the targetUtilizationPercentage property: Target CPU usage for the autoscaler.
-
-
-
Method Detail
-
maxInstances
public Integer maxInstances()
Get the maxInstances property: The maximum number of instances that the deployment can scale to. The quota will be reserved for max_instances.- Returns:
- the maxInstances value.
-
withMaxInstances
public TargetUtilizationScaleSettings withMaxInstances(Integer maxInstances)
Set the maxInstances property: The maximum number of instances that the deployment can scale to. The quota will be reserved for max_instances.- Parameters:
maxInstances
- the maxInstances value to set.- Returns:
- the TargetUtilizationScaleSettings object itself.
-
minInstances
public Integer minInstances()
Get the minInstances property: The minimum number of instances to always be present.- Returns:
- the minInstances value.
-
withMinInstances
public TargetUtilizationScaleSettings withMinInstances(Integer minInstances)
Set the minInstances property: The minimum number of instances to always be present.- Parameters:
minInstances
- the minInstances value to set.- Returns:
- the TargetUtilizationScaleSettings object itself.
-
pollingInterval
public Duration pollingInterval()
Get the pollingInterval property: The polling interval in ISO 8691 format. Only supports duration with precision as low as Seconds.- Returns:
- the pollingInterval value.
-
withPollingInterval
public TargetUtilizationScaleSettings withPollingInterval(Duration pollingInterval)
Set the pollingInterval property: The polling interval in ISO 8691 format. Only supports duration with precision as low as Seconds.- Parameters:
pollingInterval
- the pollingInterval value to set.- Returns:
- the TargetUtilizationScaleSettings object itself.
-
targetUtilizationPercentage
public Integer targetUtilizationPercentage()
Get the targetUtilizationPercentage property: Target CPU usage for the autoscaler.- Returns:
- the targetUtilizationPercentage value.
-
withTargetUtilizationPercentage
public TargetUtilizationScaleSettings withTargetUtilizationPercentage(Integer targetUtilizationPercentage)
Set the targetUtilizationPercentage property: Target CPU usage for the autoscaler.- Parameters:
targetUtilizationPercentage
- the targetUtilizationPercentage value to set.- Returns:
- the TargetUtilizationScaleSettings object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classOnlineScaleSettings
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-