RecurrencePattern Class
- java.
lang. Object - com.
azure. resourcemanager. labservices. models. RecurrencePattern
- com.
Implements
public final class RecurrencePattern
implements JsonSerializable<RecurrencePattern>
Recurrence pattern of a lab schedule.
Constructor Summary
| Constructor | Description |
|---|---|
| RecurrencePattern() |
Creates an instance of Recurrence |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Offset |
expirationDate()
Get the expiration |
|
Recurrence |
frequency()
Get the frequency property: The frequency of the recurrence. |
|
static
Recurrence |
fromJson(JsonReader jsonReader)
Reads an instance of Recurrence |
| Integer |
interval()
Get the interval property: The interval to invoke the schedule on. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
List<Week |
weekDays()
Get the week |
|
Recurrence |
withExpirationDate(OffsetDateTime expirationDate)
Set the expiration |
|
Recurrence |
withFrequency(RecurrenceFrequency frequency)
Set the frequency property: The frequency of the recurrence. |
|
Recurrence |
withInterval(Integer interval)
Set the interval property: The interval to invoke the schedule on. |
|
Recurrence |
withWeekDays(List<WeekDay> weekDays)
Set the week |
Methods inherited from java.lang.Object
Constructor Details
RecurrencePattern
public RecurrencePattern()
Creates an instance of RecurrencePattern class.
Method Details
expirationDate
public OffsetDateTime expirationDate()
Get the expirationDate property: When the recurrence will expire. This date is inclusive.
Returns:
frequency
public RecurrenceFrequency frequency()
Get the frequency property: The frequency of the recurrence.
Returns:
fromJson
public static RecurrencePattern fromJson(JsonReader jsonReader)
Reads an instance of RecurrencePattern from the JsonReader.
Parameters:
Returns:
Throws:
interval
public Integer interval()
Get the interval property: The interval to invoke the schedule on. For example, interval = 2 and RecurrenceFrequency.Daily will run every 2 days. When no interval is supplied, an interval of 1 is used.
Returns:
toJson
validate
public void validate()
Validates the instance.
weekDays
public List<WeekDay> weekDays()
Get the weekDays property: The week days the schedule runs. Used for when the Frequency is set to Weekly.
Returns:
withExpirationDate
public RecurrencePattern withExpirationDate(OffsetDateTime expirationDate)
Set the expirationDate property: When the recurrence will expire. This date is inclusive.
Parameters:
Returns:
withFrequency
public RecurrencePattern withFrequency(RecurrenceFrequency frequency)
Set the frequency property: The frequency of the recurrence.
Parameters:
Returns:
withInterval
public RecurrencePattern withInterval(Integer interval)
Set the interval property: The interval to invoke the schedule on. For example, interval = 2 and RecurrenceFrequency.Daily will run every 2 days. When no interval is supplied, an interval of 1 is used.
Parameters:
Returns:
withWeekDays
public RecurrencePattern withWeekDays(List<WeekDay> weekDays)
Set the weekDays property: The week days the schedule runs. Used for when the Frequency is set to Weekly.
Parameters:
Returns: