Class AdvancedSchedule

java.lang.Object
com.azure.resourcemanager.automation.models.AdvancedSchedule
All Implemented Interfaces:
com.azure.json.JsonSerializable<AdvancedSchedule>

public final class AdvancedSchedule extends Object implements com.azure.json.JsonSerializable<AdvancedSchedule>
The properties of the create Advanced Schedule.
  • Constructor Details

    • AdvancedSchedule

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

    • weekDays

      public List<String> weekDays()
      Get the weekDays property: Days of the week that the job should execute on.
      Returns:
      the weekDays value.
    • withWeekDays

      public AdvancedSchedule withWeekDays(List<String> weekDays)
      Set the weekDays property: Days of the week that the job should execute on.
      Parameters:
      weekDays - the weekDays value to set.
      Returns:
      the AdvancedSchedule object itself.
    • monthDays

      public List<Integer> monthDays()
      Get the monthDays property: Days of the month that the job should execute on. Must be between 1 and 31.
      Returns:
      the monthDays value.
    • withMonthDays

      public AdvancedSchedule withMonthDays(List<Integer> monthDays)
      Set the monthDays property: Days of the month that the job should execute on. Must be between 1 and 31.
      Parameters:
      monthDays - the monthDays value to set.
      Returns:
      the AdvancedSchedule object itself.
    • monthlyOccurrences

      public List<AdvancedScheduleMonthlyOccurrence> monthlyOccurrences()
      Get the monthlyOccurrences property: Occurrences of days within a month.
      Returns:
      the monthlyOccurrences value.
    • withMonthlyOccurrences

      public AdvancedSchedule withMonthlyOccurrences(List<AdvancedScheduleMonthlyOccurrence> monthlyOccurrences)
      Set the monthlyOccurrences property: Occurrences of days within a month.
      Parameters:
      monthlyOccurrences - the monthlyOccurrences value to set.
      Returns:
      the AdvancedSchedule object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AdvancedSchedule>
      Throws:
      IOException
    • fromJson

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