Class WindowPreferenceDetail.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • months

        public WindowPreferenceDetail.Builder months​(List<Month> months)
        Months during the year when scheduled window should be performed.
        Parameters:
        months - the value to set
        Returns:
        this builder
      • weeksOfMonth

        public WindowPreferenceDetail.Builder weeksOfMonth​(List<Integer> weeksOfMonth)
        Weeks during the month when scheduled window should be performed.

        Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week. For example, to allow scheduling window during the 2nd week of the month (from the 8th day to the 14th day of the month), use the value 2. Scheduling window cannot be scheduled for the fifth week of months that contain more than 28 days. Note that this parameter works in conjunction with the daysOfWeek and startTime parameters to allow you to specify specific days of the week and hours that scheduled window will be performed.

        Parameters:
        weeksOfMonth - the value to set
        Returns:
        this builder
      • daysOfWeek

        public WindowPreferenceDetail.Builder daysOfWeek​(List<DayOfWeek> daysOfWeek)
        Days during the week when scheduling window should be performed.
        Parameters:
        daysOfWeek - the value to set
        Returns:
        this builder
      • startTime

        public WindowPreferenceDetail.Builder startTime​(String startTime)
        The scheduling window start time.

        The value must use the ISO-8601 format “hh:mm”.

        Parameters:
        startTime - the value to set
        Returns:
        this builder
      • duration

        public WindowPreferenceDetail.Builder duration​(Integer duration)
        Duration window allows user to set a duration they plan to allocate for Scheduling window.

        The duration is in minutes.

        Parameters:
        duration - the value to set
        Returns:
        this builder
      • isEnforcedDuration

        public WindowPreferenceDetail.Builder isEnforcedDuration​(Boolean isEnforcedDuration)
        Indicates if duration the user plans to allocate for scheduling window is strictly enforced.

        The default value is FALSE.

        Parameters:
        isEnforcedDuration - the value to set
        Returns:
        this builder