Class RecurrencePattern
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.RecurrencePattern
-
public final class RecurrencePattern extends Object
Recurrence schedule pattern definition.
-
-
Constructor Summary
Constructors Constructor Description RecurrencePattern()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Integer>
hours()
Get the hours property: [Required] List of hours for recurrence schedule pattern.List<Integer>
minutes()
Get the minutes property: [Required] List of minutes for recurrence schedule pattern.void
validate()
Validates the instance.List<Weekday>
weekdays()
Get the weekdays property: List of weekdays for recurrence schedule pattern.RecurrencePattern
withHours(List<Integer> hours)
Set the hours property: [Required] List of hours for recurrence schedule pattern.RecurrencePattern
withMinutes(List<Integer> minutes)
Set the minutes property: [Required] List of minutes for recurrence schedule pattern.RecurrencePattern
withWeekdays(List<Weekday> weekdays)
Set the weekdays property: List of weekdays for recurrence schedule pattern.
-
-
-
Method Detail
-
hours
public List<Integer> hours()
Get the hours property: [Required] List of hours for recurrence schedule pattern.- Returns:
- the hours value.
-
withHours
public RecurrencePattern withHours(List<Integer> hours)
Set the hours property: [Required] List of hours for recurrence schedule pattern.- Parameters:
hours
- the hours value to set.- Returns:
- the RecurrencePattern object itself.
-
minutes
public List<Integer> minutes()
Get the minutes property: [Required] List of minutes for recurrence schedule pattern.- Returns:
- the minutes value.
-
withMinutes
public RecurrencePattern withMinutes(List<Integer> minutes)
Set the minutes property: [Required] List of minutes for recurrence schedule pattern.- Parameters:
minutes
- the minutes value to set.- Returns:
- the RecurrencePattern object itself.
-
weekdays
public List<Weekday> weekdays()
Get the weekdays property: List of weekdays for recurrence schedule pattern.- Returns:
- the weekdays value.
-
withWeekdays
public RecurrencePattern withWeekdays(List<Weekday> weekdays)
Set the weekdays property: List of weekdays for recurrence schedule pattern.- Parameters:
weekdays
- the weekdays value to set.- Returns:
- the RecurrencePattern object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-