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 Summary
ConstructorsConstructorDescriptionCreates an instance of JobConfigurationScheduleTriggerConfig class. -
Method Summary
Modifier and TypeMethodDescriptionGet the cronExpression property: Cron formatted repeating schedule ("* * * * *") of a Cron Job.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of JobConfigurationScheduleTriggerConfig 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.withCronExpression
(String cronExpression) Set the cronExpression property: Cron formatted repeating schedule ("* * * * *") of a Cron Job.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
-
JobConfigurationScheduleTriggerConfig
public JobConfigurationScheduleTriggerConfig()Creates an instance of JobConfigurationScheduleTriggerConfig class.
-
-
Method Details
-
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
Get the cronExpression property: Cron formatted repeating schedule ("* * * * *") of a Cron Job.- Returns:
- the cronExpression value.
-
withCronExpression
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
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 JobConfigurationScheduleTriggerConfig 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<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.
-