Class AbsoluteMonthlySchedule

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

public final class AbsoluteMonthlySchedule extends Object implements com.azure.json.JsonSerializable<AbsoluteMonthlySchedule>
For schedules like: 'recur every month on the 15th' or 'recur every 3 months on the 20th'.
  • Constructor Details

    • AbsoluteMonthlySchedule

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

    • intervalMonths

      public int intervalMonths()
      Get the intervalMonths property: Specifies the number of months between each set of occurrences.
      Returns:
      the intervalMonths value.
    • withIntervalMonths

      public AbsoluteMonthlySchedule withIntervalMonths(int intervalMonths)
      Set the intervalMonths property: Specifies the number of months between each set of occurrences.
      Parameters:
      intervalMonths - the intervalMonths value to set.
      Returns:
      the AbsoluteMonthlySchedule object itself.
    • dayOfMonth

      public int dayOfMonth()
      Get the dayOfMonth property: The date of the month.
      Returns:
      the dayOfMonth value.
    • withDayOfMonth

      public AbsoluteMonthlySchedule withDayOfMonth(int dayOfMonth)
      Set the dayOfMonth property: The date of the month.
      Parameters:
      dayOfMonth - the dayOfMonth value to set.
      Returns:
      the AbsoluteMonthlySchedule 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<AbsoluteMonthlySchedule>
      Throws:
      IOException
    • fromJson

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