java.lang.Object
com.azure.resourcemanager.appcontainers.models.JobScale
All Implemented Interfaces:
com.azure.json.JsonSerializable<JobScale>

public final class JobScale extends Object implements com.azure.json.JsonSerializable<JobScale>
Scaling configurations for event driven jobs.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of JobScale class.
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.
    Get the rules property: Scaling rules.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    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.
    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

      public Integer pollingInterval()
      Get the pollingInterval property: Interval to check each event source in seconds. Defaults to 30s.
      Returns:
      the pollingInterval value.
    • withPollingInterval

      public JobScale withPollingInterval(Integer pollingInterval)
      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

      public Integer minExecutions()
      Get the minExecutions property: Minimum number of job executions that are created for a trigger, default 0.
      Returns:
      the minExecutions value.
    • withMinExecutions

      public JobScale withMinExecutions(Integer minExecutions)
      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

      public Integer maxExecutions()
      Get the maxExecutions property: Maximum number of job executions that are created for a trigger, default 100.
      Returns:
      the maxExecutions value.
    • withMaxExecutions

      public JobScale withMaxExecutions(Integer maxExecutions)
      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

      public List<JobScaleRule> rules()
      Get the rules property: Scaling rules.
      Returns:
      the rules value.
    • withRules

      public JobScale withRules(List<JobScaleRule> rules)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<JobScale>
      Throws:
      IOException
    • fromJson

      public static JobScale fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.