Class WeeklyRecurrence

java.lang.Object
com.azure.resourcemanager.alertsmanagement.models.Recurrence
com.azure.resourcemanager.alertsmanagement.models.WeeklyRecurrence

public final class WeeklyRecurrence extends Recurrence
Weekly recurrence object.
  • Constructor Details

    • WeeklyRecurrence

      public WeeklyRecurrence()
  • Method Details

    • daysOfWeek

      public List<DaysOfWeek> daysOfWeek()
      Get the daysOfWeek property: Specifies the values for weekly recurrence pattern.
      Returns:
      the daysOfWeek value.
    • withDaysOfWeek

      public WeeklyRecurrence withDaysOfWeek(List<DaysOfWeek> daysOfWeek)
      Set the daysOfWeek property: Specifies the values for weekly recurrence pattern.
      Parameters:
      daysOfWeek - the daysOfWeek value to set.
      Returns:
      the WeeklyRecurrence object itself.
    • withStartTime

      public WeeklyRecurrence withStartTime(String startTime)
      Set the startTime property: Start time for recurrence.
      Overrides:
      withStartTime in class Recurrence
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the Recurrence object itself.
    • withEndTime

      public WeeklyRecurrence withEndTime(String endTime)
      Set the endTime property: End time for recurrence.
      Overrides:
      withEndTime in class Recurrence
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the Recurrence object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class Recurrence
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.