Package com.azure.compute.batch.models
Class BatchJobScheduleUpdateContent
java.lang.Object
com.azure.compute.batch.models.BatchJobScheduleUpdateContent
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchJobScheduleUpdateContent>
public final class BatchJobScheduleUpdateContent
extends Object
implements com.azure.json.JsonSerializable<BatchJobScheduleUpdateContent>
Parameters for updating an Azure Batch Job Schedule.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BatchJobScheduleUpdateContent class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchJobScheduleUpdateContent from the JsonReader.Get the jobSpecification property: The details of the Jobs to be created on this schedule.Get the metadata property: A list of name-value pairs associated with the Job Schedule as metadata.Get the schedule property: The schedule according to which Jobs will be created.setJobSpecification
(BatchJobSpecification jobSpecification) Set the jobSpecification property: The details of the Jobs to be created on this schedule.setMetadata
(List<MetadataItem> metadata) Set the metadata property: A list of name-value pairs associated with the Job 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
-
BatchJobScheduleUpdateContent
public BatchJobScheduleUpdateContent()Creates an instance of BatchJobScheduleUpdateContent class.
-
-
Method Details
-
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. If you do not specify this element, the existing schedule is left unchanged.- 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. If you do not specify this element, the existing schedule is left unchanged.- Parameters:
schedule
- the schedule value to set.- Returns:
- the BatchJobScheduleUpdateContent object itself.
-
getJobSpecification
Get the jobSpecification property: The details of the Jobs to be created on this schedule. Updates affect only Jobs that are started after the update has taken place. Any currently active Job continues with the older specification.- Returns:
- the jobSpecification value.
-
setJobSpecification
Set the jobSpecification property: The details of the Jobs to be created on this schedule. Updates affect only Jobs that are started after the update has taken place. Any currently active Job continues with the older specification.- Parameters:
jobSpecification
- the jobSpecification value to set.- Returns:
- the BatchJobScheduleUpdateContent object itself.
-
getMetadata
Get the metadata property: A list of name-value pairs associated with the Job Schedule as metadata. If you do not specify this element, existing metadata is left unchanged.- Returns:
- the metadata value.
-
setMetadata
Set the metadata property: A list of name-value pairs associated with the Job Schedule as metadata. If you do not specify this element, existing metadata is left unchanged.- Parameters:
metadata
- the metadata value to set.- Returns:
- the BatchJobScheduleUpdateContent object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BatchJobScheduleUpdateContent>
- Throws:
IOException
-
fromJson
public static BatchJobScheduleUpdateContent fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BatchJobScheduleUpdateContent from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of BatchJobScheduleUpdateContent 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 BatchJobScheduleUpdateContent.
-