Recurrence Class

  • java.lang.Object
    • com.azure.developer.loadtesting.models.Recurrence

Implements

public class Recurrence
implements JsonSerializable<Recurrence>

Recurrence model.

Constructor Summary

Constructor Description
Recurrence()

Creates an instance of Recurrence class.

Method Summary

Modifier and Type Method and Description
static Recurrence fromJson(JsonReader jsonReader)

Reads an instance of Recurrence from the JsonReader.

Frequency getFrequency()

Get the frequency property: Frequency of the recurrence.

RecurrenceEnd getRecurrenceEnd()

Get the recurrenceEnd property: Recurrence end model.

Recurrence setRecurrenceEnd(RecurrenceEnd recurrenceEnd)

Set the recurrenceEnd property: Recurrence end model.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

Recurrence

public Recurrence()

Creates an instance of Recurrence class.

Method Details

fromJson

public static Recurrence fromJson(JsonReader jsonReader)

Reads an instance of Recurrence from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the Recurrence.

getFrequency

public Frequency getFrequency()

Get the frequency property: Frequency of the recurrence.

Returns:

the frequency value.

getRecurrenceEnd

public RecurrenceEnd getRecurrenceEnd()

Get 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.

Returns:

the recurrenceEnd value.

setRecurrenceEnd

public Recurrence 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.

Parameters:

recurrenceEnd - the recurrenceEnd value to set.

Returns:

the Recurrence object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to