java.lang.Object
com.azure.resourcemanager.appcontainers.fluent.models.JobExecutionInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<JobExecutionInner>

public final class JobExecutionInner extends Object implements com.azure.json.JsonSerializable<JobExecutionInner>
Container Apps Job execution.
  • Constructor Details

    • JobExecutionInner

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

    • name

      public String name()
      Get the name property: Job execution Name.
      Returns:
      the name value.
    • withName

      public JobExecutionInner withName(String name)
      Set the name property: Job execution Name.
      Parameters:
      name - the name value to set.
      Returns:
      the JobExecutionInner object itself.
    • id

      public String id()
      Get the id property: Job execution Id.
      Returns:
      the id value.
    • withId

      public JobExecutionInner withId(String id)
      Set the id property: Job execution Id.
      Parameters:
      id - the id value to set.
      Returns:
      the JobExecutionInner object itself.
    • type

      public String type()
      Get the type property: Job execution type.
      Returns:
      the type value.
    • withType

      public JobExecutionInner withType(String type)
      Set the type property: Job execution type.
      Parameters:
      type - the type value to set.
      Returns:
      the JobExecutionInner object itself.
    • status

      public JobExecutionRunningState status()
      Get the status property: Current running State of the job.
      Returns:
      the status value.
    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: Job execution start time.
      Returns:
      the startTime value.
    • withStartTime

      public JobExecutionInner withStartTime(OffsetDateTime startTime)
      Set the startTime property: Job execution start time.
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the JobExecutionInner object itself.
    • endTime

      public OffsetDateTime endTime()
      Get the endTime property: Job execution end time.
      Returns:
      the endTime value.
    • withEndTime

      public JobExecutionInner withEndTime(OffsetDateTime endTime)
      Set the endTime property: Job execution end time.
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the JobExecutionInner object itself.
    • template

      public JobExecutionTemplate template()
      Get the template property: Job's execution container.
      Returns:
      the template value.
    • withTemplate

      public JobExecutionInner withTemplate(JobExecutionTemplate template)
      Set the template property: Job's execution container.
      Parameters:
      template - the template value to set.
      Returns:
      the JobExecutionInner 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<JobExecutionInner>
      Throws:
      IOException
    • fromJson

      public static JobExecutionInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of JobExecutionInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of JobExecutionInner 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 JobExecutionInner.