Class TaskSchedule.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • 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
      • 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
      • 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