RecurrenceEnd Class
- java.
lang. Object - com.
azure. developer. loadtesting. models. RecurrenceEnd
- com.
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 Recurrence |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Recurrence |
fromJson(JsonReader jsonReader)
Reads an instance of Recurrence |
|
Offset |
getEndDateTime()
Get the end |
| Integer |
getNumberOfOccurrences()
Get the number |
|
Recurrence |
setEndDateTime(OffsetDateTime endDateTime)
Set the end |
|
Recurrence |
setNumberOfOccurrences(Integer numberOfOccurrences)
Set the number |
|
Json |
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:
Returns:
Throws:
getEndDateTime
public OffsetDateTime getEndDateTime()
Get the endDateTime property: The date after which the recurrence will end. (RFC 3339 literal format).
Returns:
getNumberOfOccurrences
public Integer getNumberOfOccurrences()
Get the numberOfOccurrences property: Number of occurrences after which the recurrence will end.
Returns:
setEndDateTime
public RecurrenceEnd setEndDateTime(OffsetDateTime endDateTime)
Set the endDateTime property: The date after which the recurrence will end. (RFC 3339 literal format).
Parameters:
Returns:
setNumberOfOccurrences
public RecurrenceEnd setNumberOfOccurrences(Integer numberOfOccurrences)
Set the numberOfOccurrences property: Number of occurrences after which the recurrence will end.
Parameters:
Returns: