Class BatchJobScheduleExecutionInfo

java.lang.Object
com.azure.compute.batch.models.BatchJobScheduleExecutionInfo
All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchJobScheduleExecutionInfo>

public final class BatchJobScheduleExecutionInfo extends Object implements com.azure.json.JsonSerializable<BatchJobScheduleExecutionInfo>
Contains information about Jobs that have been and will be run under a Job Schedule.
  • Method Details

    • getNextRunTime

      public OffsetDateTime getNextRunTime()
      Get the nextRunTime property: The next time at which a Job will be created under this schedule. This property is meaningful only if the schedule is in the active state when the time comes around. For example, if the schedule is disabled, no Job will be created at nextRunTime unless the Job is enabled before then.
      Returns:
      the nextRunTime value.
    • getRecentJob

      public RecentBatchJob getRecentJob()
      Get the recentJob property: Information about the most recent Job under the Job Schedule. This property is present only if the at least one Job has run under the schedule.
      Returns:
      the recentJob value.
    • getEndTime

      public OffsetDateTime getEndTime()
      Get the endTime property: The time at which the schedule ended. This property is set only if the Job Schedule is in the completed state.
      Returns:
      the endTime value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BatchJobScheduleExecutionInfo>
      Throws:
      IOException
    • fromJson

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