Class RecurrencePattern
java.lang.Object
com.azure.resourcemanager.labservices.models.RecurrencePattern
Recurrence pattern of a lab schedule.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the expirationDate property: When the recurrence will expire.Get the frequency property: The frequency of the recurrence.interval()
Get the interval property: The interval to invoke the schedule on.void
validate()
Validates the instance.weekDays()
Get the weekDays property: The week days the schedule runs.withExpirationDate
(OffsetDateTime expirationDate) Set the expirationDate property: When the recurrence will expire.withFrequency
(RecurrenceFrequency frequency) Set the frequency property: The frequency of the recurrence.withInterval
(Integer interval) Set the interval property: The interval to invoke the schedule on.withWeekDays
(List<WeekDay> weekDays) Set the weekDays property: The week days the schedule runs.
-
Constructor Details
-
RecurrencePattern
public RecurrencePattern()
-
-
Method Details
-
frequency
Get the frequency property: The frequency of the recurrence.- Returns:
- the frequency value.
-
withFrequency
Set the frequency property: The frequency of the recurrence.- Parameters:
frequency
- the frequency value to set.- Returns:
- the RecurrencePattern object itself.
-
weekDays
Get the weekDays property: The week days the schedule runs. Used for when the Frequency is set to Weekly.- Returns:
- the weekDays value.
-
withWeekDays
Set the weekDays property: The week days the schedule runs. Used for when the Frequency is set to Weekly.- Parameters:
weekDays
- the weekDays value to set.- Returns:
- the RecurrencePattern object itself.
-
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:
- the interval value.
-
withInterval
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:
interval
- the interval value to set.- Returns:
- the RecurrencePattern object itself.
-
expirationDate
Get the expirationDate property: When the recurrence will expire. This date is inclusive.- Returns:
- the expirationDate value.
-
withExpirationDate
Set the expirationDate property: When the recurrence will expire. This date is inclusive.- Parameters:
expirationDate
- the expirationDate value to set.- Returns:
- the RecurrencePattern object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-