WeeklyRecurrence Class
- java.
lang. Object - com.
azure. developer. loadtesting. models. Recurrence - com.
azure. developer. loadtesting. models. WeeklyRecurrence
- com.
- com.
public final class WeeklyRecurrence
extends Recurrence
Recurrence model when frequency is set as weekly.
Constructor Summary
| Constructor | Description |
|---|---|
| WeeklyRecurrence() |
Creates an instance of Weekly |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Weekly |
fromJson(JsonReader jsonReader)
Reads an instance of Weekly |
|
List<Week |
getDaysOfWeek()
Get the days |
| Frequency |
getFrequency()
Get the frequency property: Frequency of the recurrence. |
| Integer |
getInterval()
Get the interval property: The interval at which the recurrence should repeat. |
|
Weekly |
setDaysOfWeek(List<WeekDays> daysOfWeek)
Set the days |
|
Weekly |
setInterval(Integer interval)
Set the interval property: The interval at which the recurrence should repeat. |
|
Weekly |
setRecurrenceEnd(RecurrenceEnd recurrenceEnd)
Set the recurrence |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from Recurrence
Methods inherited from java.lang.Object
Constructor Details
WeeklyRecurrence
public WeeklyRecurrence()
Creates an instance of WeeklyRecurrence class.
Method Details
fromJson
public static WeeklyRecurrence fromJson(JsonReader jsonReader)
Reads an instance of WeeklyRecurrence from the JsonReader.
Parameters:
Returns:
Throws:
getDaysOfWeek
public List<WeekDays> getDaysOfWeek()
Get the daysOfWeek property: Recurrence set to repeat on the specified days of the week.
Returns:
getFrequency
public Frequency getFrequency()
Get the frequency property: Frequency of the recurrence.
Overrides:
WeeklyRecurrence.getFrequency()Returns:
getInterval
public Integer getInterval()
Get the interval property: The interval at which the recurrence should repeat. It signifies the number of weeks between each recurrence.
Returns:
setDaysOfWeek
public WeeklyRecurrence setDaysOfWeek(List<WeekDays> daysOfWeek)
Set the daysOfWeek property: Recurrence set to repeat on the specified days of the week.
Parameters:
Returns:
setInterval
public WeeklyRecurrence setInterval(Integer interval)
Set the interval property: The interval at which the recurrence should repeat. It signifies the number of weeks between each recurrence.
Parameters:
Returns:
setRecurrenceEnd
public WeeklyRecurrence 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:
WeeklyRecurrence.setRecurrenceEnd(RecurrenceEnd recurrenceEnd)Parameters:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
WeeklyRecurrence.toJson(JsonWriter jsonWriter)Parameters:
Throws: