Class JobLog.Builder

  • Enclosing class:
    JobLog

    public static class JobLog.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • key

        public JobLog.Builder key​(String key)
        Unique key of the job log that is immutable.
        Parameters:
        key - the value to set
        Returns:
        this builder
      • jobExecutionKey

        public JobLog.Builder jobExecutionKey​(String jobExecutionKey)
        The unique key of the parent job execution for which the log resource was created.
        Parameters:
        jobExecutionKey - the value to set
        Returns:
        this builder
      • createdById

        public JobLog.Builder createdById​(String createdById)
        OCID of the user who created the log record for this job.

        Usually the executor of the job instance.

        Parameters:
        createdById - the value to set
        Returns:
        this builder
      • updatedById

        public JobLog.Builder updatedById​(String updatedById)
        OCID of the user who created the log record for this job.

        Usually the executor of the job instance.

        Parameters:
        updatedById - the value to set
        Returns:
        this builder
      • timeUpdated

        public JobLog.Builder timeUpdated​(Date timeUpdated)
        Job log update time.

        An RFC3339 formatted datetime string.

        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • timeCreated

        public JobLog.Builder timeCreated​(Date timeCreated)
        The date and time the job log was created, in the format defined by RFC3339.

        Example: 2019-03-25T21:10:29.600Z

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • severity

        public JobLog.Builder severity​(String severity)
        Severity level for this log.
        Parameters:
        severity - the value to set
        Returns:
        this builder
      • logMessage

        public JobLog.Builder logMessage​(String logMessage)
        Message for this job log.
        Parameters:
        logMessage - the value to set
        Returns:
        this builder
      • uri

        public JobLog.Builder uri​(String uri)
        URI to the job log instance in the API.
        Parameters:
        uri - the value to set
        Returns:
        this builder
      • build

        public JobLog build()