Class ScheduleIntervalTrigger.Builder
- java.lang.Object
-
- com.oracle.bmc.datascience.model.ScheduleIntervalTrigger.Builder
-
- Enclosing class:
- ScheduleIntervalTrigger
public static class ScheduleIntervalTrigger.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScheduleIntervalTriggerbuild()ScheduleIntervalTrigger.Buildercopy(ScheduleIntervalTrigger model)ScheduleIntervalTrigger.Builderfrequency(ScheduleIntervalTrigger.Frequency frequency)The type of frequencyScheduleIntervalTrigger.BuilderinitialJitterInMinutes(Integer initialJitterInMinutes)Maximum number of minutes after timeStart that the scheduler may use to randomly select the first execution time.ScheduleIntervalTrigger.Builderinterval(Integer interval)The interval of frequency.ScheduleIntervalTrigger.BuilderisRandomStartTime(Boolean isRandomStartTime)when true, system generates a randomized first start time between timeStart and timeStart
- initialJitterInMinutes.
ScheduleIntervalTrigger.BuildertimeEnd(Date timeEnd)ScheduleIntervalTrigger.BuildertimeStart(Date timeStart)
-
-
-
Method Detail
-
timeStart
public ScheduleIntervalTrigger.Builder timeStart(Date timeStart)
-
timeEnd
public ScheduleIntervalTrigger.Builder timeEnd(Date timeEnd)
-
frequency
public ScheduleIntervalTrigger.Builder frequency(ScheduleIntervalTrigger.Frequency frequency)
The type of frequency- Parameters:
frequency- the value to set- Returns:
- this builder
-
interval
public ScheduleIntervalTrigger.Builder interval(Integer interval)
The interval of frequency.- Parameters:
interval- the value to set- Returns:
- this builder
-
initialJitterInMinutes
public ScheduleIntervalTrigger.Builder initialJitterInMinutes(Integer initialJitterInMinutes)
Maximum number of minutes after timeStart that the scheduler may use to randomly select the first execution time.This value is considered only when isRandomStartTime is true. This value applies only to the initial execution; subsequent executions remain deterministic based on the resolved first trigger time. If timeStart is null, the service resolves the effective start time using the current time. The initial jitter window is then applied once to that resolved start time to determine the first execution time. If not provided and isRandomStartTime is true, the service defaults the jitter window to half of the configured interval duration. The value must not exceed the configured interval duration.
- Parameters:
initialJitterInMinutes- the value to set- Returns:
- this builder
-
isRandomStartTime
public ScheduleIntervalTrigger.Builder isRandomStartTime(Boolean isRandomStartTime)
when true, system generates a randomized first start time between timeStart and timeStart
- initialJitterInMinutes.
if timeStart is null, the current time is used as the base start time.
- Parameters:
isRandomStartTime- the value to set- Returns:
- this builder
-
build
public ScheduleIntervalTrigger build()
-
copy
public ScheduleIntervalTrigger.Builder copy(ScheduleIntervalTrigger model)
-
-