MonthlyRecurrence Class

public final class MonthlyRecurrence
extends Recurrence

Monthly recurrence object.

Constructor Summary

Constructor Description
MonthlyRecurrence()

Creates an instance of MonthlyRecurrence class.

Method Summary

Modifier and Type Method and Description
List<Integer> daysOfMonth()

Get the daysOfMonth property: Specifies the values for monthly recurrence pattern.

static MonthlyRecurrence fromJson(JsonReader jsonReader)

Reads an instance of MonthlyRecurrence from the JsonReader.

RecurrenceType recurrenceType()

Get the recurrenceType property: Specifies when the recurrence should be applied.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MonthlyRecurrence withDaysOfMonth(List<Integer> daysOfMonth)

Set the daysOfMonth property: Specifies the values for monthly recurrence pattern.

MonthlyRecurrence withEndTime(String endTime)

Set the endTime property: End time for recurrence.

MonthlyRecurrence withStartTime(String startTime)

Set the startTime property: Start time for recurrence.

Methods inherited from Recurrence

Methods inherited from java.lang.Object

Constructor Details

MonthlyRecurrence

public MonthlyRecurrence()

Creates an instance of MonthlyRecurrence class.

Method Details

daysOfMonth

public List<Integer> daysOfMonth()

Get the daysOfMonth property: Specifies the values for monthly recurrence pattern.

Returns:

the daysOfMonth value.

fromJson

public static MonthlyRecurrence fromJson(JsonReader jsonReader)

Reads an instance of MonthlyRecurrence from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MonthlyRecurrence if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

recurrenceType

public RecurrenceType recurrenceType()

Get the recurrenceType property: Specifies when the recurrence should be applied.

Overrides:

MonthlyRecurrence.recurrenceType()

Returns:

the recurrenceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MonthlyRecurrence.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MonthlyRecurrence.validate()

withDaysOfMonth

public MonthlyRecurrence withDaysOfMonth(List<Integer> daysOfMonth)

Set the daysOfMonth property: Specifies the values for monthly recurrence pattern.

Parameters:

daysOfMonth - the daysOfMonth value to set.

Returns:

the MonthlyRecurrence object itself.

withEndTime

public MonthlyRecurrence withEndTime(String endTime)

Set the endTime property: End time for recurrence.

Overrides:

MonthlyRecurrence.withEndTime(String endTime)

Parameters:

endTime

withStartTime

public MonthlyRecurrence withStartTime(String startTime)

Set the startTime property: Start time for recurrence.

Overrides:

MonthlyRecurrence.withStartTime(String startTime)

Parameters:

startTime

Applies to