public interface

JobMessage

com.atlassian.bitbucket.job.JobMessage

Class Overview

A message logged against a job, optionally associated with subject entity such as a project, repository or pull request.

Summary

Public Methods
@Nonnull Instant getCreatedDate()
long getId()
@Nonnull Job getJob()
@Nonnull JobMessageSeverity getSeverity()
@Nonnull Optional<String> getSubject()
@Nonnull String getText()

Public Methods

@Nonnull public Instant getCreatedDate ()

Returns
  • when the message was created

public long getId ()

Returns
  • the job message's ID

@Nonnull public Job getJob ()

Returns
  • the job this message relates to

@Nonnull public JobMessageSeverity getSeverity ()

Returns
  • the severity of the message

@Nonnull public Optional<String> getSubject ()

Returns
  • an identifier or description of the subject the message relates to, or empty() if it's a job-level message

@Nonnull public String getText ()

Returns
  • the string details of the message