RecurrenceScheduleOccurrence Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.RecurrenceScheduleOccurrence

Implements

public final class RecurrenceScheduleOccurrence
implements JsonSerializable<RecurrenceScheduleOccurrence>

The recurrence schedule occurrence.

Constructor Summary

Constructor Description
RecurrenceScheduleOccurrence()

Creates an instance of RecurrenceScheduleOccurrence class.

Method Summary

Modifier and Type Method and Description
DayOfWeek day()

Get the day property: The day of the week.

static RecurrenceScheduleOccurrence fromJson(JsonReader jsonReader)

Reads an instance of RecurrenceScheduleOccurrence from the JsonReader.

Integer occurrence()

Get the occurrence property: The occurrence.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RecurrenceScheduleOccurrence withDay(DayOfWeek day)

Set the day property: The day of the week.

RecurrenceScheduleOccurrence withOccurrence(Integer occurrence)

Set the occurrence property: The occurrence.

Methods inherited from java.lang.Object

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.

fromJson

public static RecurrenceScheduleOccurrence fromJson(JsonReader jsonReader)

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.

occurrence

public Integer occurrence()

Get the occurrence property: The occurrence.

Returns:

the occurrence value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDay

public RecurrenceScheduleOccurrence withDay(DayOfWeek day)

Set the day property: The day of the week.

Parameters:

day - the day value to set.

Returns:

the RecurrenceScheduleOccurrence object itself.

withOccurrence

public RecurrenceScheduleOccurrence withOccurrence(Integer occurrence)

Set the occurrence property: The occurrence.

Parameters:

occurrence - the occurrence value to set.

Returns:

the RecurrenceScheduleOccurrence object itself.

Applies to