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 Details

    • JobExecutionTemplate

      public JobExecutionTemplate()
      Creates an instance of JobExecutionTemplate class.
  • Method Details

    • containers

      public List<JobExecutionContainer> containers()
      Get the containers property: List of container definitions for the Container Apps Job.
      Returns:
      the containers value.
    • withContainers

      public JobExecutionTemplate withContainers(List<JobExecutionContainer> containers)
      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

      public List<JobExecutionContainer> initContainers()
      Get the initContainers property: List of specialized containers that run before job containers.
      Returns:
      the initContainers value.
    • withInitContainers

      public JobExecutionTemplate withInitContainers(List<JobExecutionContainer> initContainers)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.