java.lang.Object
io.github.primelib.jira4j.restv3.model.Worklog

@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator") public class Worklog extends Object
Worklog
  • Field Details

    • author

      protected WorklogAuthor author
    • comment

      protected Object comment
      A comment about the worklog in [Atlassian Document Format](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/). Optional when creating or updating a worklog.
    • created

      protected OffsetDateTime created
      The datetime on which the worklog was created.
    • id

      protected String id
      The ID of the worklog record.
    • issueId

      protected String issueId
      The ID of the issue this worklog is for.
    • properties

      protected List<EntityProperty> properties
      Details of properties for the worklog. Optional when creating or updating a worklog.
    • self

      protected URI self
      The URL of the worklog item.
    • started

      protected OffsetDateTime started
      The datetime on which the worklog effort was started. Required when creating a worklog. Optional when updating a worklog.
    • timeSpent

      protected String timeSpent
      The time spent working on the issue as days (\\#d), hours (\\#h), or minutes (\\#m or \\#). Required when creating a worklog if timeSpentSeconds isn't provided. Optional when updating a worklog. Cannot be provided if timeSpentSecond is provided.
    • timeSpentSeconds

      protected Long timeSpentSeconds
      The time in seconds spent working on the issue. Required when creating a worklog if timeSpent isn't provided. Optional when updating a worklog. Cannot be provided if timeSpent is provided.
    • updateAuthor

      protected WorklogUpdateAuthor updateAuthor
    • updated

      protected OffsetDateTime updated
      The datetime on which the worklog was last updated.
    • visibility

      protected Visibility visibility
  • Constructor Details

    • Worklog

      public Worklog(Consumer<Worklog> spec)
      Constructs a validated instance of Worklog.
      Parameters:
      spec - the specification to process
    • Worklog

      @Internal public Worklog(WorklogAuthor author, Object comment, OffsetDateTime created, String id, String issueId, List<EntityProperty> properties, URI self, OffsetDateTime started, String timeSpent, Long timeSpentSeconds, WorklogUpdateAuthor updateAuthor, OffsetDateTime updated, Visibility visibility)
      Constructs a validated instance of Worklog.

      NOTE: This constructor is not considered stable and may change if the model is updated. Consider using Worklog(Consumer) instead.

      Parameters:
      author - author
      comment - A comment about the worklog in [Atlassian Document Format](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/). Optional when creating or updating a worklog.
      created - The datetime on which the worklog was created.
      id - The ID of the worklog record.
      issueId - The ID of the issue this worklog is for.
      properties - Details of properties for the worklog. Optional when creating or updating a worklog.
      self - The URL of the worklog item.
      started - The datetime on which the worklog effort was started. Required when creating a worklog. Optional when updating a worklog.
      timeSpent - The time spent working on the issue as days (\\#d), hours (\\#h), or minutes (\\#m or \\#). Required when creating a worklog if timeSpentSeconds isn't provided. Optional when updating a worklog. Cannot be provided if timeSpentSecond is provided.
      timeSpentSeconds - The time in seconds spent working on the issue. Required when creating a worklog if timeSpent isn't provided. Optional when updating a worklog. Cannot be provided if timeSpent is provided.
      updateAuthor - updateAuthor
      updated - The datetime on which the worklog was last updated.
      visibility - visibility
    • Worklog

      protected Worklog()
  • Method Details

    • builder

      public static Worklog.WorklogBuilder builder()
    • author

      public WorklogAuthor author()
    • comment

      public Object comment()
      A comment about the worklog in [Atlassian Document Format](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/). Optional when creating or updating a worklog.
    • created

      public OffsetDateTime created()
      The datetime on which the worklog was created.
    • id

      public String id()
      The ID of the worklog record.
    • issueId

      public String issueId()
      The ID of the issue this worklog is for.
    • properties

      public List<EntityProperty> properties()
      Details of properties for the worklog. Optional when creating or updating a worklog.
    • self

      public URI self()
      The URL of the worklog item.
    • started

      public OffsetDateTime started()
      The datetime on which the worklog effort was started. Required when creating a worklog. Optional when updating a worklog.
    • timeSpent

      public String timeSpent()
      The time spent working on the issue as days (\\#d), hours (\\#h), or minutes (\\#m or \\#). Required when creating a worklog if timeSpentSeconds isn't provided. Optional when updating a worklog. Cannot be provided if timeSpentSecond is provided.
    • timeSpentSeconds

      public Long timeSpentSeconds()
      The time in seconds spent working on the issue. Required when creating a worklog if timeSpent isn't provided. Optional when updating a worklog. Cannot be provided if timeSpent is provided.
    • updateAuthor

      public WorklogUpdateAuthor updateAuthor()
    • updated

      public OffsetDateTime updated()
      The datetime on which the worklog was last updated.
    • visibility

      public Visibility visibility()
    • author

      public Worklog author(WorklogAuthor author)
      Returns:
      this.
    • comment

      public Worklog comment(Object comment)
      A comment about the worklog in [Atlassian Document Format](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/). Optional when creating or updating a worklog.
      Returns:
      this.
    • created

      public Worklog created(OffsetDateTime created)
      The datetime on which the worklog was created.
      Returns:
      this.
    • id

      public Worklog id(String id)
      The ID of the worklog record.
      Returns:
      this.
    • issueId

      public Worklog issueId(String issueId)
      The ID of the issue this worklog is for.
      Returns:
      this.
    • properties

      public Worklog properties(List<EntityProperty> properties)
      Details of properties for the worklog. Optional when creating or updating a worklog.
      Returns:
      this.
    • self

      public Worklog self(URI self)
      The URL of the worklog item.
      Returns:
      this.
    • started

      public Worklog started(OffsetDateTime started)
      The datetime on which the worklog effort was started. Required when creating a worklog. Optional when updating a worklog.
      Returns:
      this.
    • timeSpent

      public Worklog timeSpent(String timeSpent)
      The time spent working on the issue as days (\\#d), hours (\\#h), or minutes (\\#m or \\#). Required when creating a worklog if timeSpentSeconds isn't provided. Optional when updating a worklog. Cannot be provided if timeSpentSecond is provided.
      Returns:
      this.
    • timeSpentSeconds

      public Worklog timeSpentSeconds(Long timeSpentSeconds)
      The time in seconds spent working on the issue. Required when creating a worklog if timeSpent isn't provided. Optional when updating a worklog. Cannot be provided if timeSpent is provided.
      Returns:
      this.
    • updateAuthor

      public Worklog updateAuthor(WorklogUpdateAuthor updateAuthor)
      Returns:
      this.
    • updated

      public Worklog updated(OffsetDateTime updated)
      The datetime on which the worklog was last updated.
      Returns:
      this.
    • visibility

      public Worklog visibility(Visibility visibility)
      Returns:
      this.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object