Class Schedule.Builder

  • Enclosing class:
    Schedule

    public static class Schedule.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Schedule.Builder id​(String id)
        The OCID representing a unique shedule.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • name

        public Schedule.Builder name​(String name)
        The unique name of the schedule created by the user.
        Parameters:
        name - the value to set
        Returns:
        this builder
      • compartmentId

        public Schedule.Builder compartmentId​(String compartmentId)
        The customer tenancy.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • description

        public Schedule.Builder description​(String description)
        The description of the schedule.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • timeNextRun

        public Schedule.Builder timeNextRun​(Date timeNextRun)
        The date and time of the next job execution.
        Parameters:
        timeNextRun - the value to set
        Returns:
        this builder
      • outputFileFormat

        public Schedule.Builder outputFileFormat​(Schedule.OutputFileFormat outputFileFormat)
        Specifies the supported output file format.
        Parameters:
        outputFileFormat - the value to set
        Returns:
        this builder
      • savedReportId

        public Schedule.Builder savedReportId​(String savedReportId)
        The saved report ID which can also be used to generate a query.
        Parameters:
        savedReportId - the value to set
        Returns:
        this builder
      • scheduleRecurrences

        public Schedule.Builder scheduleRecurrences​(String scheduleRecurrences)
        Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10.

        Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.

        Parameters:
        scheduleRecurrences - the value to set
        Returns:
        this builder
      • timeScheduled

        public Schedule.Builder timeScheduled​(Date timeScheduled)
        The date and time of the first time job execution.
        Parameters:
        timeScheduled - the value to set
        Returns:
        this builder
      • timeCreated

        public Schedule.Builder timeCreated​(Date timeCreated)
        The date and time the schedule was created.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • lifecycleState

        public Schedule.Builder lifecycleState​(Schedule.LifecycleState lifecycleState)
        The schedule lifecycle state.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • freeformTags

        public Schedule.Builder freeformTags​(Map<String,​String> freeformTags)
        Simple key-value pair that is applied without any predefined name, type or scope.

        Exists for cross-compatibility only. See Resource Tags. Example: {“bar-key”: “value”}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • definedTags

        public Schedule.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. See Resource Tags. Example: {“foo-namespace”: {“bar-key”: “value”}}

        Parameters:
        definedTags - the value to set
        Returns:
        this builder
      • systemTags

        public Schedule.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        Usage of system tag keys.

        These predefined keys are scoped to namespaces. See Resource Tags. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

        Parameters:
        systemTags - the value to set
        Returns:
        this builder