MonthlyRecurrenceByDates Class
- java.
lang. Object - com.
azure. developer. loadtesting. models. Recurrence - com.
azure. developer. loadtesting. models. MonthlyRecurrenceByDates
- com.
- com.
public final class MonthlyRecurrenceByDates
extends Recurrence
Recurrence model when frequency is set as MonthlyByDates.
Constructor Summary
| Constructor | Description |
|---|---|
| MonthlyRecurrenceByDates() |
Creates an instance of Monthly |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Monthly |
fromJson(JsonReader jsonReader)
Reads an instance of Monthly |
| List<Integer> |
getDatesInMonth()
Get the dates |
| Frequency |
getFrequency()
Get the frequency property: Frequency of the recurrence. |
| Integer |
getInterval()
Get the interval property: The interval at which the recurrence should repeat. |
|
Monthly |
setDatesInMonth(List<Integer> datesInMonth)
Set the dates |
|
Monthly |
setInterval(Integer interval)
Set the interval property: The interval at which the recurrence should repeat. |
|
Monthly |
setRecurrenceEnd(RecurrenceEnd recurrenceEnd)
Set the recurrence |
|
Json |
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:
Returns:
Throws:
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:
getFrequency
public Frequency getFrequency()
Get the frequency property: Frequency of the recurrence.
Overrides:
MonthlyRecurrenceByDates.getFrequency()Returns:
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:
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:
Returns:
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:
Returns:
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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MonthlyRecurrenceByDates.toJson(JsonWriter jsonWriter)Parameters:
Throws: