Class TimeEntryCreateOrUpdate

java.lang.Object
com.xero.models.project.TimeEntryCreateOrUpdate

public class TimeEntryCreateOrUpdate
extends Object
TimeEntryCreateOrUpdate
  • Constructor Details

    • TimeEntryCreateOrUpdate

      public TimeEntryCreateOrUpdate()
  • Method Details

    • userId

      public TimeEntryCreateOrUpdate userId​(UUID userId)
    • getUserId

      public UUID getUserId()
      The xero user identifier of the person logging the time.
      Returns:
      userId
    • setUserId

      public void setUserId​(UUID userId)
    • taskId

      public TimeEntryCreateOrUpdate taskId​(UUID taskId)
    • getTaskId

      public UUID getTaskId()
      Identifier of the task that time entry is logged against.
      Returns:
      taskId
    • setTaskId

      public void setTaskId​(UUID taskId)
    • dateUtc

      public TimeEntryCreateOrUpdate dateUtc​(org.threeten.bp.OffsetDateTime dateUtc)
    • getDateUtc

      public org.threeten.bp.OffsetDateTime getDateUtc()
      Date time entry is logged on. UTC Date Time in ISO-8601 format.
      Returns:
      dateUtc
    • setDateUtc

      public void setDateUtc​(org.threeten.bp.OffsetDateTime dateUtc)
    • duration

      public TimeEntryCreateOrUpdate duration​(Integer duration)
    • getDuration

      public Integer getDuration()
      Number of minutes to be logged. Duration is between 1 and 59940 inclusively.
      Returns:
      duration
    • setDuration

      public void setDuration​(Integer duration)
    • description

      public TimeEntryCreateOrUpdate description​(String description)
    • getDescription

      public String getDescription()
      An optional description of the time entry, will be set to null if not provided during update.
      Returns:
      description
    • setDescription

      public void setDescription​(String description)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object