Class JobExecutionTemplate
java.lang.Object
com.azure.resourcemanager.appcontainers.models.JobExecutionTemplate
- All Implemented Interfaces:
com.azure.json.JsonSerializable<JobExecutionTemplate>
public final class JobExecutionTemplate
extends Object
implements com.azure.json.JsonSerializable<JobExecutionTemplate>
Job's execution template, containing container configuration for a job's execution.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the containers property: List of container definitions for the Container Apps Job.static JobExecutionTemplate
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of JobExecutionTemplate from the JsonReader.Get the initContainers property: List of specialized containers that run before job containers.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withContainers
(List<JobExecutionContainer> containers) Set the containers property: List of container definitions for the Container Apps Job.withInitContainers
(List<JobExecutionContainer> initContainers) Set the initContainers property: List of specialized containers that run before job containers.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
-
JobExecutionTemplate
public JobExecutionTemplate()Creates an instance of JobExecutionTemplate class.
-
-
Method Details
-
containers
Get the containers property: List of container definitions for the Container Apps Job.- Returns:
- the containers value.
-
withContainers
Set the containers property: List of container definitions for the Container Apps Job.- Parameters:
containers
- the containers value to set.- Returns:
- the JobExecutionTemplate object itself.
-
initContainers
Get the initContainers property: List of specialized containers that run before job containers.- Returns:
- the initContainers value.
-
withInitContainers
Set the initContainers property: List of specialized containers that run before job containers.- Parameters:
initContainers
- the initContainers value to set.- Returns:
- the JobExecutionTemplate 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<JobExecutionTemplate>
- Throws:
IOException
-
fromJson
public static JobExecutionTemplate fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of JobExecutionTemplate from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of JobExecutionTemplate 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 JobExecutionTemplate.
-