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 Summary
ConstructorsConstructorDescriptionCreates an instance of RecurrenceScheduleOccurrence class. -
Method Summary
Modifier and TypeMethodDescriptionday()Get the day property: The day of the week.static RecurrenceScheduleOccurrencefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RecurrenceScheduleOccurrence from the JsonReader.Get the occurrence property: The occurrence.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the day property: The day of the week.withOccurrence(Integer occurrence) Set the occurrence property: The occurrence.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RecurrenceScheduleOccurrence
public RecurrenceScheduleOccurrence()Creates an instance of RecurrenceScheduleOccurrence class.
-
-
Method Details
-
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
Get the occurrence property: The occurrence.- Returns:
- the occurrence value.
-
withOccurrence
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
- Specified by:
toJsonin interfacecom.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.
-