Class JobConfigurationManualTriggerConfig

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

public final class JobConfigurationManualTriggerConfig extends Object implements com.azure.json.JsonSerializable<JobConfigurationManualTriggerConfig>
Manual trigger configuration for a single execution job. Properties replicaCompletionCount and parallelism would be set to 1 by default.
  • Constructor Details

    • JobConfigurationManualTriggerConfig

      public JobConfigurationManualTriggerConfig()
      Creates an instance of JobConfigurationManualTriggerConfig 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 JobConfigurationManualTriggerConfig 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 JobConfigurationManualTriggerConfig 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 JobConfigurationManualTriggerConfig 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 JobConfigurationManualTriggerConfig 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<JobConfigurationManualTriggerConfig>
      Throws:
      IOException
    • fromJson

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