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 Summary
ConstructorsConstructorDescriptionCreates an instance of JobConfigurationEventTriggerConfig class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of JobConfigurationEventTriggerConfig 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.scale()Get the scale property: Scaling configurations for event driven jobs.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()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.Set the scale property: Scaling configurations for event driven jobs.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
JobConfigurationEventTriggerConfig
public JobConfigurationEventTriggerConfig()Creates an instance of JobConfigurationEventTriggerConfig class.
-
-
Method Details
-
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
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 JobConfigurationEventTriggerConfig object itself.
-
scale
Get the scale property: Scaling configurations for event driven jobs.- Returns:
- the scale value.
-
withScale
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
- Specified by:
toJsonin interfacecom.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.
-