Class TargetUtilizationScaleSettings
java.lang.Object
com.azure.resourcemanager.machinelearning.models.OnlineScaleSettings
com.azure.resourcemanager.machinelearning.models.TargetUtilizationScaleSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OnlineScaleSettings>
The TargetUtilizationScaleSettings model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of TargetUtilizationScaleSettings class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TargetUtilizationScaleSettings from the JsonReader.Get the maxInstances property: The maximum number of instances that the deployment can scale to.Get the minInstances property: The minimum number of instances to always be present.Get the pollingInterval property: The polling interval in ISO 8691 format.Get the scaleType property: [Required] Type of deployment scaling algorithm.Get the targetUtilizationPercentage property: Target CPU usage for the autoscaler.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withMaxInstances(Integer maxInstances) Set the maxInstances property: The maximum number of instances that the deployment can scale to.withMinInstances(Integer minInstances) Set the minInstances property: The minimum number of instances to always be present.withPollingInterval(Duration pollingInterval) Set the pollingInterval property: The polling interval in ISO 8691 format.withTargetUtilizationPercentage(Integer targetUtilizationPercentage) Set the targetUtilizationPercentage property: Target CPU usage for the autoscaler.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
-
TargetUtilizationScaleSettings
public TargetUtilizationScaleSettings()Creates an instance of TargetUtilizationScaleSettings class.
-
-
Method Details
-
scaleType
Get the scaleType property: [Required] Type of deployment scaling algorithm.- Overrides:
scaleTypein classOnlineScaleSettings- Returns:
- the scaleType value.
-
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
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
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.
-
minInstances
Get the minInstances property: The minimum number of instances to always be present.- Returns:
- the minInstances value.
-
withMinInstances
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.
-
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
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.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classOnlineScaleSettings- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OnlineScaleSettings>- Overrides:
toJsonin classOnlineScaleSettings- Throws:
IOException
-
fromJson
public static TargetUtilizationScaleSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of TargetUtilizationScaleSettings from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TargetUtilizationScaleSettings if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the TargetUtilizationScaleSettings.
-