MonthlyRecurrenceByDates Class

public final class MonthlyRecurrenceByDates
extends Recurrence

Recurrence model when frequency is set as MonthlyByDates.

Constructor Summary

Constructor Description
MonthlyRecurrenceByDates()

Creates an instance of MonthlyRecurrenceByDates class.

Method Summary

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

Reads an instance of MonthlyRecurrenceByDates from the JsonReader.

List<Integer> getDatesInMonth()

Get the datesInMonth property: Recurrence set to repeat on the specified dates of the month.

Frequency getFrequency()

Get the frequency property: Frequency of the recurrence.

Integer getInterval()

Get the interval property: The interval at which the recurrence should repeat.

MonthlyRecurrenceByDates setDatesInMonth(List<Integer> datesInMonth)

Set the datesInMonth property: Recurrence set to repeat on the specified dates of the month.

MonthlyRecurrenceByDates setInterval(Integer interval)

Set the interval property: The interval at which the recurrence should repeat.

MonthlyRecurrenceByDates setRecurrenceEnd(RecurrenceEnd recurrenceEnd)

Set the recurrenceEnd property: Recurrence end model.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from Recurrence

Methods inherited from java.lang.Object

Constructor Details

MonthlyRecurrenceByDates

public MonthlyRecurrenceByDates()

Creates an instance of MonthlyRecurrenceByDates class.

Method Details

fromJson

public static MonthlyRecurrenceByDates fromJson(JsonReader jsonReader)

Reads an instance of MonthlyRecurrenceByDates from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getDatesInMonth

public List<Integer> getDatesInMonth()

Get the datesInMonth property: Recurrence set to repeat on the specified dates of the month. Value of dates can be 1 to 31 and -1. -1 represents the last day of the month.

Returns:

the datesInMonth value.

getFrequency

public Frequency getFrequency()

Get the frequency property: Frequency of the recurrence.

Overrides:

MonthlyRecurrenceByDates.getFrequency()

Returns:

the frequency value.

getInterval

public Integer getInterval()

Get the interval property: The interval at which the recurrence should repeat. It signifies the number of months between each recurrence.

Returns:

the interval value.

setDatesInMonth

public MonthlyRecurrenceByDates setDatesInMonth(List<Integer> datesInMonth)

Set the datesInMonth property: Recurrence set to repeat on the specified dates of the month. Value of dates can be 1 to 31 and -1. -1 represents the last day of the month.

Parameters:

datesInMonth - the datesInMonth value to set.

Returns:

the MonthlyRecurrenceByDates object itself.

setInterval

public MonthlyRecurrenceByDates setInterval(Integer interval)

Set the interval property: The interval at which the recurrence should repeat. It signifies the number of months between each recurrence.

Parameters:

interval - the interval value to set.

Returns:

the MonthlyRecurrenceByDates object itself.

setRecurrenceEnd

public MonthlyRecurrenceByDates setRecurrenceEnd(RecurrenceEnd recurrenceEnd)

Set the recurrenceEnd property: Recurrence end model. You can specify the end either by providing a numberOfOccurrences (which will end the recurrence after the specified number of occurrences) or by providing an endDateTime (which will end the recurrence after the specified date). If neither value is provided, the recurrence will continue until it is manually ended. However, if both values are provided, an error will be thrown.

Overrides:

MonthlyRecurrenceByDates.setRecurrenceEnd(RecurrenceEnd recurrenceEnd)

Parameters:

recurrenceEnd

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MonthlyRecurrenceByDates.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to