Package com.oracle.bmc.database.model
Class WindowPreferenceDetail.Builder
- java.lang.Object
-
- com.oracle.bmc.database.model.WindowPreferenceDetail.Builder
-
- Enclosing class:
- WindowPreferenceDetail
public static class WindowPreferenceDetail.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
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
-
build
public WindowPreferenceDetail build()
-
copy
public WindowPreferenceDetail.Builder copy(WindowPreferenceDetail model)
-
-