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