Class BatchJobScheduleCreateContent

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

public final class BatchJobScheduleCreateContent extends Object implements com.azure.json.JsonSerializable<BatchJobScheduleCreateContent>
Parameters for creating an Azure Batch Job Schedule.
  • Constructor Details

    • BatchJobScheduleCreateContent

      public BatchJobScheduleCreateContent(String id, BatchJobScheduleConfiguration schedule, BatchJobSpecification jobSpecification)
      Creates an instance of BatchJobScheduleCreateContent class.
      Parameters:
      id - the id value to set.
      schedule - the schedule value to set.
      jobSpecification - the jobSpecification value to set.
  • Method Details

    • getId

      public String getId()
      Get the id property: A string that uniquely identifies the schedule within the Account. The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within an Account that differ only by case).
      Returns:
      the id value.
    • getDisplayName

      public String getDisplayName()
      Get the displayName property: The display name for the schedule. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.
      Returns:
      the displayName value.
    • setDisplayName

      public BatchJobScheduleCreateContent setDisplayName(String displayName)
      Set the displayName property: The display name for the schedule. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the BatchJobScheduleCreateContent object itself.
    • 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.
      Returns:
      the schedule value.
    • getJobSpecification

      public BatchJobSpecification getJobSpecification()
      Get the jobSpecification property: The details of the Jobs to be created on this schedule.
      Returns:
      the jobSpecification value.
    • getMetadata

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

      public BatchJobScheduleCreateContent setMetadata(List<MetadataItem> metadata)
      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 BatchJobScheduleCreateContent 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<BatchJobScheduleCreateContent>
      Throws:
      IOException
    • fromJson

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