Package com.azure.compute.batch.models
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 Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchJobScheduleExecutionInfo from the JsonReader.Get the endTime property: The time at which the schedule ended.Get the nextRunTime property: The next time at which a Job will be created under this schedule.Get the recentJob property: Information about the most recent Job under the Job Schedule.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) 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
-
Method Details
-
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
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
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
- Specified by:
toJson
in interfacecom.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.
-