DailyRecurrence Class

public final class DailyRecurrence
extends Recurrence

Recurrence model when frequency is set as Daily.

Constructor Summary

Constructor Description
DailyRecurrence()

Creates an instance of DailyRecurrence class.

Method Summary

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

Reads an instance of DailyRecurrence from the JsonReader.

Frequency getFrequency()

Get the frequency property: Frequency of the recurrence.

int getInterval()

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

DailyRecurrence setInterval(int interval)

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

DailyRecurrence 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

DailyRecurrence

public DailyRecurrence()

Creates an instance of DailyRecurrence class.

Method Details

fromJson

public static DailyRecurrence fromJson(JsonReader jsonReader)

Reads an instance of DailyRecurrence from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getFrequency

public Frequency getFrequency()

Get the frequency property: Frequency of the recurrence.

Overrides:

DailyRecurrence.getFrequency()

Returns:

the frequency value.

getInterval

public int getInterval()

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

Returns:

the interval value.

setInterval

public DailyRecurrence setInterval(int interval)

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

Required when create the resource.

Parameters:

interval - the interval value to set.

Returns:

the DailyRecurrence object itself.

setRecurrenceEnd

public DailyRecurrence 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:

DailyRecurrence.setRecurrenceEnd(RecurrenceEnd recurrenceEnd)

Parameters:

recurrenceEnd

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DailyRecurrence.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to