Class RecurrenceScheduleOccurrence

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

public final class RecurrenceScheduleOccurrence extends Object implements com.azure.json.JsonSerializable<RecurrenceScheduleOccurrence>
The recurrence schedule occurrence.
  • Constructor Details

    • RecurrenceScheduleOccurrence

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

    • day

      public DayOfWeek day()
      Get the day property: The day of the week.
      Returns:
      the day value.
    • withDay

      Set the day property: The day of the week.
      Parameters:
      day - the day value to set.
      Returns:
      the RecurrenceScheduleOccurrence object itself.
    • occurrence

      public Integer occurrence()
      Get the occurrence property: The occurrence.
      Returns:
      the occurrence value.
    • withOccurrence

      public RecurrenceScheduleOccurrence withOccurrence(Integer occurrence)
      Set the occurrence property: The occurrence.
      Parameters:
      occurrence - the occurrence value to set.
      Returns:
      the RecurrenceScheduleOccurrence 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<RecurrenceScheduleOccurrence>
      Throws:
      IOException
    • fromJson

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