java.lang.Object
com.azure.resourcemanager.alertsmanagement.models.Schedule

public final class Schedule extends Object
Scheduling configuration for a given alert processing rule.
  • Constructor Details

    • Schedule

      public Schedule()
  • Method Details

    • effectiveFrom

      public String effectiveFrom()
      Get the effectiveFrom property: Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
      Returns:
      the effectiveFrom value.
    • withEffectiveFrom

      public Schedule withEffectiveFrom(String effectiveFrom)
      Set the effectiveFrom property: Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
      Parameters:
      effectiveFrom - the effectiveFrom value to set.
      Returns:
      the Schedule object itself.
    • effectiveUntil

      public String effectiveUntil()
      Get the effectiveUntil property: Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
      Returns:
      the effectiveUntil value.
    • withEffectiveUntil

      public Schedule withEffectiveUntil(String effectiveUntil)
      Set the effectiveUntil property: Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
      Parameters:
      effectiveUntil - the effectiveUntil value to set.
      Returns:
      the Schedule object itself.
    • timeZone

      public String timeZone()
      Get the timeZone property: Scheduling time zone.
      Returns:
      the timeZone value.
    • withTimeZone

      public Schedule withTimeZone(String timeZone)
      Set the timeZone property: Scheduling time zone.
      Parameters:
      timeZone - the timeZone value to set.
      Returns:
      the Schedule object itself.
    • recurrences

      public List<Recurrence> recurrences()
      Get the recurrences property: List of recurrences.
      Returns:
      the recurrences value.
    • withRecurrences

      public Schedule withRecurrences(List<Recurrence> recurrences)
      Set the recurrences property: List of recurrences.
      Parameters:
      recurrences - the recurrences value to set.
      Returns:
      the Schedule object itself.
    • validate

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