Package com.azure.compute.batch.models
Class BatchJobSchedule
java.lang.Object
com.azure.compute.batch.models.BatchJobSchedule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchJobSchedule>
public final class BatchJobSchedule
extends Object
implements com.azure.json.JsonSerializable<BatchJobSchedule>
A Job Schedule that allows recurring Jobs by specifying when to run Jobs and a
specification used to create each Job.
-
Constructor Summary
ConstructorsConstructorDescriptionBatchJobSchedule
(BatchJobSpecification jobSpecification) Creates an instance of BatchJobSchedule class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchJobSchedule
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchJobSchedule from the JsonReader.Get the creationTime property: The creation time of the Job Schedule.Get the displayName property: The display name for the schedule.getETag()
Get the eTag property: The ETag of the Job Schedule.Get the executionInfo property: Information about Jobs that have been and will be run under this schedule.getId()
Get the id property: A string that uniquely identifies the schedule within the Account.Get the jobSpecification property: The details of the Jobs to be created on this schedule.Get the lastModified property: The last modified time of the Job Schedule.Get the metadata property: A list of name-value pairs associated with the schedule as metadata.Get the previousState property: The previous state of the Job Schedule.Get the previousStateTransitionTime property: The time at which the Job Schedule entered its previous state.Get the schedule property: The schedule according to which Jobs will be created.getState()
Get the state property: The current state of the Job Schedule.Get the stateTransitionTime property: The time at which the Job Schedule entered the current state.getStats()
Get the stats property: The lifetime resource usage statistics for the Job Schedule.getUrl()
Get the url property: The URL of the Job Schedule.setMetadata
(List<MetadataItem> metadata) Set the metadata property: A list of name-value pairs associated with the schedule as metadata.setSchedule
(BatchJobScheduleConfiguration schedule) Set the schedule property: The schedule according to which Jobs will be created.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
-
Constructor Details
-
BatchJobSchedule
Creates an instance of BatchJobSchedule class.- Parameters:
jobSpecification
- the jobSpecification value to set.
-
-
Method Details
-
getId
Get the id property: A string that uniquely identifies the schedule within the Account.- Returns:
- the id value.
-
getDisplayName
Get the displayName property: The display name for the schedule.- Returns:
- the displayName value.
-
getUrl
Get the url property: The URL of the Job Schedule.- Returns:
- the url value.
-
getETag
Get the eTag property: The ETag of the Job Schedule. This is an opaque string. You can use it to detect whether the Job Schedule has changed between requests. In particular, you can be pass the ETag with an Update Job Schedule request to specify that your changes should take effect only if nobody else has modified the schedule in the meantime.- Returns:
- the eTag value.
-
getLastModified
Get the lastModified property: The last modified time of the Job Schedule. This is the last time at which the schedule level data, such as the Job specification or recurrence information, changed. It does not factor in job-level changes such as new Jobs being created or Jobs changing state.- Returns:
- the lastModified value.
-
getCreationTime
Get the creationTime property: The creation time of the Job Schedule.- Returns:
- the creationTime value.
-
getState
Get the state property: The current state of the Job Schedule.- Returns:
- the state value.
-
getStateTransitionTime
Get the stateTransitionTime property: The time at which the Job Schedule entered the current state.- Returns:
- the stateTransitionTime value.
-
getPreviousState
Get the previousState property: The previous state of the Job Schedule. This property is not present if the Job Schedule is in its initial active state.- Returns:
- the previousState value.
-
getPreviousStateTransitionTime
Get the previousStateTransitionTime property: The time at which the Job Schedule entered its previous state. This property is not present if the Job Schedule is in its initial active state.- Returns:
- the previousStateTransitionTime value.
-
getSchedule
Get the schedule property: The schedule according to which Jobs will be created. All times are fixed respective to UTC and are not impacted by daylight saving time.- Returns:
- the schedule value.
-
setSchedule
Set the schedule property: The schedule according to which Jobs will be created. All times are fixed respective to UTC and are not impacted by daylight saving time.- Parameters:
schedule
- the schedule value to set.- Returns:
- the BatchJobSchedule object itself.
-
getJobSpecification
Get the jobSpecification property: The details of the Jobs to be created on this schedule.- Returns:
- the jobSpecification value.
-
getExecutionInfo
Get the executionInfo property: Information about Jobs that have been and will be run under this schedule.- Returns:
- the executionInfo value.
-
getMetadata
Get the metadata property: A list of name-value pairs associated with the schedule as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code.- Returns:
- the metadata value.
-
setMetadata
Set the metadata property: A list of name-value pairs associated with the schedule as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code.- Parameters:
metadata
- the metadata value to set.- Returns:
- the BatchJobSchedule object itself.
-
getStats
Get the stats property: The lifetime resource usage statistics for the Job Schedule. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.- Returns:
- the stats value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BatchJobSchedule>
- Throws:
IOException
-
fromJson
Reads an instance of BatchJobSchedule from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of BatchJobSchedule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the BatchJobSchedule.
-