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 Details

    • BatchJobScheduleUpdateContent

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

    • getSchedule

      public BatchJobScheduleConfiguration 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

      public BatchJobSpecification 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

      public BatchJobScheduleUpdateContent setJobSpecification(BatchJobSpecification jobSpecification)
      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

      public List<MetadataItem> 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

      public BatchJobScheduleUpdateContent setMetadata(List<MetadataItem> metadata)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.