Class WeeklySchedule
java.lang.Object
com.azure.resourcemanager.containerservice.models.WeeklySchedule
For schedules like: 'recur every Monday' or 'recur every 3 weeks on Wednesday'.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the dayOfWeek property: Specifies on which day of the week the maintenance occurs.intGet the intervalWeeks property: Specifies the number of weeks between each set of occurrences.voidvalidate()Validates the instance.withDayOfWeek(WeekDay dayOfWeek) Set the dayOfWeek property: Specifies on which day of the week the maintenance occurs.withIntervalWeeks(int intervalWeeks) Set the intervalWeeks property: Specifies the number of weeks between each set of occurrences.
-
Constructor Details
-
WeeklySchedule
public WeeklySchedule()Creates an instance of WeeklySchedule class.
-
-
Method Details
-
intervalWeeks
public int intervalWeeks()Get the intervalWeeks property: Specifies the number of weeks between each set of occurrences.- Returns:
- the intervalWeeks value.
-
withIntervalWeeks
Set the intervalWeeks property: Specifies the number of weeks between each set of occurrences.- Parameters:
intervalWeeks- the intervalWeeks value to set.- Returns:
- the WeeklySchedule object itself.
-
dayOfWeek
Get the dayOfWeek property: Specifies on which day of the week the maintenance occurs.- Returns:
- the dayOfWeek value.
-
withDayOfWeek
Set the dayOfWeek property: Specifies on which day of the week the maintenance occurs.- Parameters:
dayOfWeek- the dayOfWeek value to set.- Returns:
- the WeeklySchedule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-