Package com.oracle.bmc.jms.model
Class TaskSchedule.Builder
- java.lang.Object
-
- com.oracle.bmc.jms.model.TaskSchedule.Builder
-
- Enclosing class:
- TaskSchedule
public static class TaskSchedule.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskSchedulebuild()TaskSchedule.Buildercopy(TaskSchedule model)TaskSchedule.BuildercreatedBy(String createdBy)Name of the task creator.TaskSchedule.BuilderexecutionRecurrences(String executionRecurrences)Recurrence specification for the task schedule execution (formatted according to RFC-5545).TaskSchedule.BuilderfleetId(String fleetId)The OCID of the Fleet.TaskSchedule.Builderid(String id)The OCID to identify this task schedule.TaskSchedule.BuilderlifecycleState(TaskSchedule.LifecycleState lifecycleState)All possible status of task schedule.TaskSchedule.Buildername(String name)The name of the task schedule.TaskSchedule.BuildertaskDetails(TaskDetails taskDetails)TaskSchedule.BuildertimeCreated(Date timeCreated)The date and time the task schedule was created (formatted according to RFC3339).TaskSchedule.BuildertimeLastRun(Date timeLastRun)The date and time the task schedule ran last (formatted according to RFC3339).TaskSchedule.BuildertimeLastUpdated(Date timeLastUpdated)The date and time the task schedule was last updated (formatted according to RFC3339).TaskSchedule.BuildertimeNextRun(Date timeNextRun)The date and time the task schedule will run next (formatted according to RFC3339).
-
-
-
Method Detail
-
id
public TaskSchedule.Builder id(String id)
The OCID to identify this task schedule.- Parameters:
id- the value to set- Returns:
- this builder
-
fleetId
public TaskSchedule.Builder fleetId(String fleetId)
The OCID of the Fleet.- Parameters:
fleetId- the value to set- Returns:
- this builder
-
name
public TaskSchedule.Builder name(String name)
The name of the task schedule.- Parameters:
name- the value to set- Returns:
- this builder
-
lifecycleState
public TaskSchedule.Builder lifecycleState(TaskSchedule.LifecycleState lifecycleState)
All possible status of task schedule.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
createdBy
public TaskSchedule.Builder createdBy(String createdBy)
Name of the task creator.- Parameters:
createdBy- the value to set- Returns:
- this builder
-
executionRecurrences
public TaskSchedule.Builder executionRecurrences(String executionRecurrences)
Recurrence specification for the task schedule execution (formatted according to RFC-5545).To run daily for 10 occurrences starts on September 2, 2024 09:00 EDT, it should be ‘DTSTART;TZID=America/New_York:20240902T090000 RRULE:FREQ=DAILY;COUNT=10’. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 EDT, it should be ‘DTSTART;TZID=America/New_York:20240805T090000 RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z’.
- Parameters:
executionRecurrences- the value to set- Returns:
- this builder
-
taskDetails
public TaskSchedule.Builder taskDetails(TaskDetails taskDetails)
-
timeCreated
public TaskSchedule.Builder timeCreated(Date timeCreated)
The date and time the task schedule was created (formatted according to RFC3339).- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeLastRun
public TaskSchedule.Builder timeLastRun(Date timeLastRun)
The date and time the task schedule ran last (formatted according to RFC3339).- Parameters:
timeLastRun- the value to set- Returns:
- this builder
-
timeNextRun
public TaskSchedule.Builder timeNextRun(Date timeNextRun)
The date and time the task schedule will run next (formatted according to RFC3339).- Parameters:
timeNextRun- the value to set- Returns:
- this builder
-
timeLastUpdated
public TaskSchedule.Builder timeLastUpdated(Date timeLastUpdated)
The date and time the task schedule was last updated (formatted according to RFC3339).- Parameters:
timeLastUpdated- the value to set- Returns:
- this builder
-
build
public TaskSchedule build()
-
copy
public TaskSchedule.Builder copy(TaskSchedule model)
-
-