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 Summary
ConstructorsConstructorDescriptionCreates an instance of JobConfigurationManualTriggerConfig class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of JobConfigurationManualTriggerConfig from the JsonReader.Get the parallelism property: Number of parallel replicas of a job that can run at a given time.Get the replicaCompletionCount property: Minimum number of successful replica completions before overall job completion.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withParallelism
(Integer parallelism) Set the parallelism property: Number of parallel replicas of a job that can run at a given time.withReplicaCompletionCount
(Integer replicaCompletionCount) Set the replicaCompletionCount property: Minimum number of successful replica completions before overall job completion.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
-
JobConfigurationManualTriggerConfig
public JobConfigurationManualTriggerConfig()Creates an instance of JobConfigurationManualTriggerConfig class.
-
-
Method Details
-
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
Get the parallelism property: Number of parallel replicas of a job that can run at a given time.- Returns:
- the parallelism value.
-
withParallelism
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
- Specified by:
toJson
in interfacecom.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.
-