Class JobScale
java.lang.Object
com.azure.resourcemanager.appcontainers.models.JobScale
- All Implemented Interfaces:
com.azure.json.JsonSerializable<JobScale>
Scaling configurations for event driven jobs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JobScale
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of JobScale from the JsonReader.Get the maxExecutions property: Maximum number of job executions that are created for a trigger, default 100.Get the minExecutions property: Minimum number of job executions that are created for a trigger, default 0.Get the pollingInterval property: Interval to check each event source in seconds.rules()
Get the rules property: Scaling rules.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withMaxExecutions
(Integer maxExecutions) Set the maxExecutions property: Maximum number of job executions that are created for a trigger, default 100.withMinExecutions
(Integer minExecutions) Set the minExecutions property: Minimum number of job executions that are created for a trigger, default 0.withPollingInterval
(Integer pollingInterval) Set the pollingInterval property: Interval to check each event source in seconds.withRules
(List<JobScaleRule> rules) Set the rules property: Scaling rules.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
JobScale
public JobScale()Creates an instance of JobScale class.
-
-
Method Details
-
pollingInterval
Get the pollingInterval property: Interval to check each event source in seconds. Defaults to 30s.- Returns:
- the pollingInterval value.
-
withPollingInterval
Set the pollingInterval property: Interval to check each event source in seconds. Defaults to 30s.- Parameters:
pollingInterval
- the pollingInterval value to set.- Returns:
- the JobScale object itself.
-
minExecutions
Get the minExecutions property: Minimum number of job executions that are created for a trigger, default 0.- Returns:
- the minExecutions value.
-
withMinExecutions
Set the minExecutions property: Minimum number of job executions that are created for a trigger, default 0.- Parameters:
minExecutions
- the minExecutions value to set.- Returns:
- the JobScale object itself.
-
maxExecutions
Get the maxExecutions property: Maximum number of job executions that are created for a trigger, default 100.- Returns:
- the maxExecutions value.
-
withMaxExecutions
Set the maxExecutions property: Maximum number of job executions that are created for a trigger, default 100.- Parameters:
maxExecutions
- the maxExecutions value to set.- Returns:
- the JobScale object itself.
-
rules
Get the rules property: Scaling rules.- Returns:
- the rules value.
-
withRules
Set the rules property: Scaling rules.- Parameters:
rules
- the rules value to set.- Returns:
- the JobScale object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<JobScale>
- Throws:
IOException
-
fromJson
Reads an instance of JobScale from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of JobScale 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 JobScale.
-