RecurrenceEnd Class

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

Implements

public final class RecurrenceEnd
implements JsonSerializable<RecurrenceEnd>

Recurrence end model. Either provide numberOfOccurrences if you want recurrence to end after a specified number of occurrences or provide endDate if you want recurrence to end after a specified end date. If both values are provided, a validation error will be thrown indicating that only one field should be provided. If neither value is provided, the recurrence will end when manually ended.

Constructor Summary

Constructor Description
RecurrenceEnd()

Creates an instance of RecurrenceEnd class.

Method Summary

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

Reads an instance of RecurrenceEnd from the JsonReader.

OffsetDateTime getEndDateTime()

Get the endDateTime property: The date after which the recurrence will end.

Integer getNumberOfOccurrences()

Get the numberOfOccurrences property: Number of occurrences after which the recurrence will end.

RecurrenceEnd setEndDateTime(OffsetDateTime endDateTime)

Set the endDateTime property: The date after which the recurrence will end.

RecurrenceEnd setNumberOfOccurrences(Integer numberOfOccurrences)

Set the numberOfOccurrences property: Number of occurrences after which the recurrence will end.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

RecurrenceEnd

public RecurrenceEnd()

Creates an instance of RecurrenceEnd class.

Method Details

fromJson

public static RecurrenceEnd fromJson(JsonReader jsonReader)

Reads an instance of RecurrenceEnd from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RecurrenceEnd 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 RecurrenceEnd.

getEndDateTime

public OffsetDateTime getEndDateTime()

Get the endDateTime property: The date after which the recurrence will end. (RFC 3339 literal format).

Returns:

the endDateTime value.

getNumberOfOccurrences

public Integer getNumberOfOccurrences()

Get the numberOfOccurrences property: Number of occurrences after which the recurrence will end.

Returns:

the numberOfOccurrences value.

setEndDateTime

public RecurrenceEnd setEndDateTime(OffsetDateTime endDateTime)

Set the endDateTime property: The date after which the recurrence will end. (RFC 3339 literal format).

Parameters:

endDateTime - the endDateTime value to set.

Returns:

the RecurrenceEnd object itself.

setNumberOfOccurrences

public RecurrenceEnd setNumberOfOccurrences(Integer numberOfOccurrences)

Set the numberOfOccurrences property: Number of occurrences after which the recurrence will end.

Parameters:

numberOfOccurrences - the numberOfOccurrences value to set.

Returns:

the RecurrenceEnd object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to