java.lang.Object
com.azure.resourcemanager.containerservice.models.TimeInWeek

public final class TimeInWeek extends Object
Time in a week.
  • Constructor Details

    • TimeInWeek

      public TimeInWeek()
  • Method Details

    • day

      public WeekDay day()
      Get the day property: The day of the week.
      Returns:
      the day value.
    • withDay

      public TimeInWeek withDay(WeekDay day)
      Set the day property: The day of the week.
      Parameters:
      day - the day value to set.
      Returns:
      the TimeInWeek object itself.
    • hourSlots

      public List<Integer> hourSlots()
      Get the hourSlots property: A list of hours in the day used to identify a time range.

      Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - 02:00 UTC time range.

      Returns:
      the hourSlots value.
    • withHourSlots

      public TimeInWeek withHourSlots(List<Integer> hourSlots)
      Set the hourSlots property: A list of hours in the day used to identify a time range.

      Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - 02:00 UTC time range.

      Parameters:
      hourSlots - the hourSlots value to set.
      Returns:
      the TimeInWeek object itself.
    • validate

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