Class JobConfigurationScheduleTriggerConfig

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

public final class JobConfigurationScheduleTriggerConfig extends Object implements com.azure.json.JsonSerializable<JobConfigurationScheduleTriggerConfig>
Cron formatted repeating trigger schedule ("* * * * *") for cronjobs. Properties completions and parallelism would be set to 1 by default.
  • Constructor Details

    • JobConfigurationScheduleTriggerConfig

      public JobConfigurationScheduleTriggerConfig()
      Creates an instance of JobConfigurationScheduleTriggerConfig class.
  • Method Details

    • replicaCompletionCount

      public Integer replicaCompletionCount()
      Get the replicaCompletionCount property: Minimum number of successful replica completions before overall job completion.
      Returns:
      the replicaCompletionCount value.
    • withReplicaCompletionCount

      public JobConfigurationScheduleTriggerConfig withReplicaCompletionCount(Integer replicaCompletionCount)
      Set the replicaCompletionCount property: Minimum number of successful replica completions before overall job completion.
      Parameters:
      replicaCompletionCount - the replicaCompletionCount value to set.
      Returns:
      the JobConfigurationScheduleTriggerConfig object itself.
    • cronExpression

      public String cronExpression()
      Get the cronExpression property: Cron formatted repeating schedule ("* * * * *") of a Cron Job.
      Returns:
      the cronExpression value.
    • withCronExpression

      public JobConfigurationScheduleTriggerConfig withCronExpression(String cronExpression)
      Set the cronExpression property: Cron formatted repeating schedule ("* * * * *") of a Cron Job.
      Parameters:
      cronExpression - the cronExpression value to set.
      Returns:
      the JobConfigurationScheduleTriggerConfig object itself.
    • parallelism

      public Integer parallelism()
      Get the parallelism property: Number of parallel replicas of a job that can run at a given time.
      Returns:
      the parallelism value.
    • withParallelism

      public JobConfigurationScheduleTriggerConfig withParallelism(Integer parallelism)
      Set the parallelism property: Number of parallel replicas of a job that can run at a given time.
      Parameters:
      parallelism - the parallelism value to set.
      Returns:
      the JobConfigurationScheduleTriggerConfig 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<JobConfigurationScheduleTriggerConfig>
      Throws:
      IOException
    • fromJson

      public static JobConfigurationScheduleTriggerConfig fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of JobConfigurationScheduleTriggerConfig from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of JobConfigurationScheduleTriggerConfig if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the JobConfigurationScheduleTriggerConfig.