RecurrenceSchedule Class

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

Implements

public final class RecurrenceSchedule
implements JsonSerializable<RecurrenceSchedule>

The recurrence schedule.

Constructor Summary

Constructor Description
RecurrenceSchedule()

Creates an instance of RecurrenceSchedule class.

Method Summary

Modifier and Type Method and Description
static RecurrenceSchedule fromJson(JsonReader jsonReader)

Reads an instance of RecurrenceSchedule from the JsonReader.

List<Integer> hours()

Get the hours property: The hours.

List<Integer> minutes()

Get the minutes property: The minutes.

List<Integer> monthDays()

Get the monthDays property: The month days.

List<RecurrenceScheduleOccurrence> monthlyOccurrences()

Get the monthlyOccurrences property: The monthly occurrences.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<DaysOfWeek> weekDays()

Get the weekDays property: The days of the week.

RecurrenceSchedule withHours(List<Integer> hours)

Set the hours property: The hours.

RecurrenceSchedule withMinutes(List<Integer> minutes)

Set the minutes property: The minutes.

RecurrenceSchedule withMonthDays(List<Integer> monthDays)

Set the monthDays property: The month days.

RecurrenceSchedule withMonthlyOccurrences(List<RecurrenceScheduleOccurrence> monthlyOccurrences)

Set the monthlyOccurrences property: The monthly occurrences.

RecurrenceSchedule withWeekDays(List<DaysOfWeek> weekDays)

Set the weekDays property: The days of the week.

Methods inherited from java.lang.Object

Constructor Details

RecurrenceSchedule

public RecurrenceSchedule()

Creates an instance of RecurrenceSchedule class.

Method Details

fromJson

public static RecurrenceSchedule fromJson(JsonReader jsonReader)

Reads an instance of RecurrenceSchedule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RecurrenceSchedule 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 RecurrenceSchedule.

hours

public List hours()

Get the hours property: The hours.

Returns:

the hours value.

minutes

public List minutes()

Get the minutes property: The minutes.

Returns:

the minutes value.

monthDays

public List monthDays()

Get the monthDays property: The month days.

Returns:

the monthDays value.

monthlyOccurrences

public List monthlyOccurrences()

Get the monthlyOccurrences property: The monthly occurrences.

Returns:

the monthlyOccurrences value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

weekDays

public List weekDays()

Get the weekDays property: The days of the week.

Returns:

the weekDays value.

withHours

public RecurrenceSchedule withHours(List hours)

Set the hours property: The hours.

Parameters:

hours - the hours value to set.

Returns:

the RecurrenceSchedule object itself.

withMinutes

public RecurrenceSchedule withMinutes(List minutes)

Set the minutes property: The minutes.

Parameters:

minutes - the minutes value to set.

Returns:

the RecurrenceSchedule object itself.

withMonthDays

public RecurrenceSchedule withMonthDays(List monthDays)

Set the monthDays property: The month days.

Parameters:

monthDays - the monthDays value to set.

Returns:

the RecurrenceSchedule object itself.

withMonthlyOccurrences

public RecurrenceSchedule withMonthlyOccurrences(List monthlyOccurrences)

Set the monthlyOccurrences property: The monthly occurrences.

Parameters:

monthlyOccurrences - the monthlyOccurrences value to set.

Returns:

the RecurrenceSchedule object itself.

withWeekDays

public RecurrenceSchedule withWeekDays(List weekDays)

Set the weekDays property: The days of the week.

Parameters:

weekDays - the weekDays value to set.

Returns:

the RecurrenceSchedule object itself.

Applies to