Class JobConfigurationEventTriggerConfig

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

public final class JobConfigurationEventTriggerConfig extends Object implements com.azure.json.JsonSerializable<JobConfigurationEventTriggerConfig>
Trigger configuration of an event driven job.
  • Constructor Details

    • JobConfigurationEventTriggerConfig

      public JobConfigurationEventTriggerConfig()
      Creates an instance of JobConfigurationEventTriggerConfig 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 JobConfigurationEventTriggerConfig 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 JobConfigurationEventTriggerConfig 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 JobConfigurationEventTriggerConfig 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 JobConfigurationEventTriggerConfig object itself.
    • scale

      public JobScale scale()
      Get the scale property: Scaling configurations for event driven jobs.
      Returns:
      the scale value.
    • withScale

      public JobConfigurationEventTriggerConfig withScale(JobScale scale)
      Set the scale property: Scaling configurations for event driven jobs.
      Parameters:
      scale - the scale value to set.
      Returns:
      the JobConfigurationEventTriggerConfig 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<JobConfigurationEventTriggerConfig>
      Throws:
      IOException
    • fromJson

      public static JobConfigurationEventTriggerConfig fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of JobConfigurationEventTriggerConfig from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of JobConfigurationEventTriggerConfig 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 JobConfigurationEventTriggerConfig.