public static class WindowPreferenceDetail.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
WindowPreferenceDetail |
build() |
WindowPreferenceDetail.Builder |
copy(WindowPreferenceDetail model) |
WindowPreferenceDetail.Builder |
daysOfWeek(List<DayOfWeek> daysOfWeek)
Days during the week when scheduling window should be performed.
|
WindowPreferenceDetail.Builder |
duration(Integer duration)
Duration window allows user to set a duration they plan to allocate for Scheduling
window.
|
WindowPreferenceDetail.Builder |
isEnforcedDuration(Boolean isEnforcedDuration)
Indicates if duration the user plans to allocate for scheduling window is strictly
enforced.
|
WindowPreferenceDetail.Builder |
months(List<Month> months)
Months during the year when scheduled window should be performed.
|
WindowPreferenceDetail.Builder |
startTime(String startTime)
The scheduling window start time.
|
WindowPreferenceDetail.Builder |
weeksOfMonth(List<Integer> weeksOfMonth)
Weeks during the month when scheduled window should be performed.
|
public WindowPreferenceDetail.Builder months(List<Month> months)
Months during the year when scheduled window should be performed.
months
- the value to setpublic 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.
weeksOfMonth
- the value to setpublic WindowPreferenceDetail.Builder daysOfWeek(List<DayOfWeek> daysOfWeek)
Days during the week when scheduling window should be performed.
daysOfWeek
- the value to setpublic WindowPreferenceDetail.Builder startTime(String startTime)
The scheduling window start time. The value must use the ISO-8601 format “hh:mm”.
startTime
- the value to setpublic 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.
duration
- the value to setpublic WindowPreferenceDetail.Builder isEnforcedDuration(Boolean isEnforcedDuration)
Indicates if duration the user plans to allocate for scheduling window is strictly
enforced. The default value is FALSE
.
isEnforcedDuration
- the value to setpublic WindowPreferenceDetail build()
public WindowPreferenceDetail.Builder copy(WindowPreferenceDetail model)
Copyright © 2016–2024. All rights reserved.