Class JobExecutionProperties

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

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

    • JobExecutionProperties

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

    • 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 JobExecutionProperties withStartTime(OffsetDateTime startTime)
      Set the startTime property: Job execution start time.
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the JobExecutionProperties object itself.
    • endTime

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

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

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

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

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