WeeklyRecurrence Class

public final class WeeklyRecurrence
extends Recurrence

Weekly recurrence object.

Constructor Summary

Constructor Description
WeeklyRecurrence()

Creates an instance of WeeklyRecurrence class.

Method Summary

Modifier and Type Method and Description
List<DaysOfWeek> daysOfWeek()

Get the daysOfWeek property: Specifies the values for weekly recurrence pattern.

static WeeklyRecurrence fromJson(JsonReader jsonReader)

Reads an instance of WeeklyRecurrence 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.

WeeklyRecurrence withDaysOfWeek(List<DaysOfWeek> daysOfWeek)

Set the daysOfWeek property: Specifies the values for weekly recurrence pattern.

WeeklyRecurrence withEndTime(String endTime)

Set the endTime property: End time for recurrence.

WeeklyRecurrence withStartTime(String startTime)

Set the startTime property: Start time for recurrence.

Methods inherited from Recurrence

Methods inherited from java.lang.Object

Constructor Details

WeeklyRecurrence

public WeeklyRecurrence()

Creates an instance of WeeklyRecurrence class.

Method Details

daysOfWeek

public List<DaysOfWeek> daysOfWeek()

Get the daysOfWeek property: Specifies the values for weekly recurrence pattern.

Returns:

the daysOfWeek value.

fromJson

public static WeeklyRecurrence fromJson(JsonReader jsonReader)

Reads an instance of WeeklyRecurrence from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of WeeklyRecurrence 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:

WeeklyRecurrence.recurrenceType()

Returns:

the recurrenceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

WeeklyRecurrence.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

WeeklyRecurrence.validate()

withDaysOfWeek

public WeeklyRecurrence withDaysOfWeek(List<DaysOfWeek> daysOfWeek)

Set the daysOfWeek property: Specifies the values for weekly recurrence pattern.

Parameters:

daysOfWeek - the daysOfWeek value to set.

Returns:

the WeeklyRecurrence object itself.

withEndTime

public WeeklyRecurrence withEndTime(String endTime)

Set the endTime property: End time for recurrence.

Overrides:

WeeklyRecurrence.withEndTime(String endTime)

Parameters:

endTime

withStartTime

public WeeklyRecurrence withStartTime(String startTime)

Set the startTime property: Start time for recurrence.

Overrides:

WeeklyRecurrence.withStartTime(String startTime)

Parameters:

startTime

Applies to