Package com.oracle.bmc.jms.model
Class TaskScheduleSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.jms.model.TaskScheduleSummary.Builder
-
- Enclosing class:
- TaskScheduleSummary
public static class TaskScheduleSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskScheduleSummarybuild()TaskScheduleSummary.Buildercopy(TaskScheduleSummary model)TaskScheduleSummary.BuildercreatedBy(String createdBy)The name of the task creator.TaskScheduleSummary.BuilderexecutionRecurrences(String executionRecurrences)Recurrence specification for the task schedule execution (formatted according to RFC-5545).TaskScheduleSummary.BuilderfleetId(String fleetId)The OCID of the Fleet.TaskScheduleSummary.Builderid(String id)The OCID to identify this task schedule.TaskScheduleSummary.BuilderlifecycleState(TaskSchedule.LifecycleState lifecycleState)The current state of the task schedule.TaskScheduleSummary.Buildername(String name)The name of the task schedule.TaskScheduleSummary.BuildertaskDetails(TaskDetails taskDetails)TaskScheduleSummary.BuildertimeCreated(Date timeCreated)The date and time the task schedule was created (formatted according to RFC3339).TaskScheduleSummary.BuildertimeLastRun(Date timeLastRun)The date and time the task schedule ran last (formatted according to RFC3339).TaskScheduleSummary.BuildertimeLastUpdated(Date timeLastUpdated)The date and time the task schedule was last updated (formatted according to RFC3339).TaskScheduleSummary.BuildertimeNextRun(Date timeNextRun)The date and time the task schedule will run next (formatted according to RFC3339).
-
-
-
Method Detail
-
id
public TaskScheduleSummary.Builder id(String id)
The OCID to identify this task schedule.- Parameters:
id- the value to set- Returns:
- this builder
-
fleetId
public TaskScheduleSummary.Builder fleetId(String fleetId)
The OCID of the Fleet.- Parameters:
fleetId- the value to set- Returns:
- this builder
-
name
public TaskScheduleSummary.Builder name(String name)
The name of the task schedule.- Parameters:
name- the value to set- Returns:
- this builder
-
lifecycleState
public TaskScheduleSummary.Builder lifecycleState(TaskSchedule.LifecycleState lifecycleState)
The current state of the task schedule.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
createdBy
public TaskScheduleSummary.Builder createdBy(String createdBy)
The name of the task creator.- Parameters:
createdBy- the value to set- Returns:
- this builder
-
executionRecurrences
public TaskScheduleSummary.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 TaskScheduleSummary.Builder taskDetails(TaskDetails taskDetails)
-
timeCreated
public TaskScheduleSummary.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 TaskScheduleSummary.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 TaskScheduleSummary.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 TaskScheduleSummary.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 TaskScheduleSummary build()
-
copy
public TaskScheduleSummary.Builder copy(TaskScheduleSummary model)
-
-