Package com.xero.models.project
Class TimeEntry
- java.lang.Object
-
- com.xero.models.project.TimeEntry
-
public class TimeEntry extends Object
TimeEntry
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimeEntry.StatusEnumStatus of the time entry.
-
Constructor Summary
Constructors Constructor Description TimeEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeEntrydateEnteredUtc(org.threeten.bp.OffsetDateTime dateEnteredUtc)The date time that time entry is created.TimeEntrydateUtc(org.threeten.bp.OffsetDateTime dateUtc)The date time that time entry is logged on.TimeEntrydescription(String description)A description of the time entry.TimeEntryduration(Integer duration)The duration of logged minutes.booleanequals(Object o)org.threeten.bp.OffsetDateTimegetDateEnteredUtc()The date time that time entry is created.org.threeten.bp.OffsetDateTimegetDateUtc()The date time that time entry is logged on.StringgetDescription()A description of the time entry.IntegergetDuration()The duration of logged minutes.UUIDgetProjectId()Identifier of the project, that the task (which the time entry is logged against) belongs to.TimeEntry.StatusEnumgetStatus()Status of the time entry.UUIDgetTaskId()Identifier of the task that time entry is logged against.UUIDgetTimeEntryId()Identifier of the time entry.UUIDgetUserId()The xero user identifier of the person who logged time.inthashCode()TimeEntryprojectId(UUID projectId)Identifier of the project, that the task (which the time entry is logged against) belongs to.voidsetDateEnteredUtc(org.threeten.bp.OffsetDateTime dateEnteredUtc)The date time that time entry is created.voidsetDateUtc(org.threeten.bp.OffsetDateTime dateUtc)The date time that time entry is logged on.voidsetDescription(String description)A description of the time entry.voidsetDuration(Integer duration)The duration of logged minutes.voidsetProjectId(UUID projectId)Identifier of the project, that the task (which the time entry is logged against) belongs to.voidsetStatus(TimeEntry.StatusEnum status)Status of the time entry.voidsetTaskId(UUID taskId)Identifier of the task that time entry is logged against.voidsetTimeEntryId(UUID timeEntryId)Identifier of the time entry.voidsetUserId(UUID userId)The xero user identifier of the person who logged time.TimeEntrystatus(TimeEntry.StatusEnum status)Status of the time entry.TimeEntrytaskId(UUID taskId)Identifier of the task that time entry is logged against.TimeEntrytimeEntryId(UUID timeEntryId)Identifier of the time entry.StringtoString()TimeEntryuserId(UUID userId)The xero user identifier of the person who logged time.
-
-
-
Method Detail
-
timeEntryId
public TimeEntry timeEntryId(UUID timeEntryId)
Identifier of the time entry.- Parameters:
timeEntryId- UUID- Returns:
- TimeEntry
-
getTimeEntryId
public UUID getTimeEntryId()
Identifier of the time entry.- Returns:
- timeEntryId
-
setTimeEntryId
public void setTimeEntryId(UUID timeEntryId)
Identifier of the time entry.- Parameters:
timeEntryId- UUID
-
userId
public TimeEntry userId(UUID userId)
The xero user identifier of the person who logged time.- Parameters:
userId- UUID- Returns:
- TimeEntry
-
getUserId
public UUID getUserId()
The xero user identifier of the person who logged time.- Returns:
- userId
-
setUserId
public void setUserId(UUID userId)
The xero user identifier of the person who logged time.- Parameters:
userId- UUID
-
projectId
public TimeEntry projectId(UUID projectId)
Identifier of the project, that the task (which the time entry is logged against) belongs to.- Parameters:
projectId- UUID- Returns:
- TimeEntry
-
getProjectId
public UUID getProjectId()
Identifier of the project, that the task (which the time entry is logged against) belongs to.- Returns:
- projectId
-
setProjectId
public void setProjectId(UUID projectId)
Identifier of the project, that the task (which the time entry is logged against) belongs to.- Parameters:
projectId- UUID
-
taskId
public TimeEntry taskId(UUID taskId)
Identifier of the task that time entry is logged against.- Parameters:
taskId- UUID- Returns:
- TimeEntry
-
getTaskId
public UUID getTaskId()
Identifier of the task that time entry is logged against.- Returns:
- taskId
-
setTaskId
public void setTaskId(UUID taskId)
Identifier of the task that time entry is logged against.- Parameters:
taskId- UUID
-
dateUtc
public TimeEntry dateUtc(org.threeten.bp.OffsetDateTime dateUtc)
The date time that time entry is logged on. UTC Date Time in ISO-8601 format.- Parameters:
dateUtc- OffsetDateTime- Returns:
- TimeEntry
-
getDateUtc
public org.threeten.bp.OffsetDateTime getDateUtc()
The date time that time entry is logged on. UTC Date Time in ISO-8601 format.- Returns:
- dateUtc
-
setDateUtc
public void setDateUtc(org.threeten.bp.OffsetDateTime dateUtc)
The date time that time entry is logged on. UTC Date Time in ISO-8601 format.- Parameters:
dateUtc- OffsetDateTime
-
dateEnteredUtc
public TimeEntry dateEnteredUtc(org.threeten.bp.OffsetDateTime dateEnteredUtc)
The date time that time entry is created. UTC Date Time in ISO-8601 format. By default it is set to server time.- Parameters:
dateEnteredUtc- OffsetDateTime- Returns:
- TimeEntry
-
getDateEnteredUtc
public org.threeten.bp.OffsetDateTime getDateEnteredUtc()
The date time that time entry is created. UTC Date Time in ISO-8601 format. By default it is set to server time.- Returns:
- dateEnteredUtc
-
setDateEnteredUtc
public void setDateEnteredUtc(org.threeten.bp.OffsetDateTime dateEnteredUtc)
The date time that time entry is created. UTC Date Time in ISO-8601 format. By default it is set to server time.- Parameters:
dateEnteredUtc- OffsetDateTime
-
duration
public TimeEntry duration(Integer duration)
The duration of logged minutes.- Parameters:
duration- Integer- Returns:
- TimeEntry
-
getDuration
public Integer getDuration()
The duration of logged minutes.- Returns:
- duration
-
setDuration
public void setDuration(Integer duration)
The duration of logged minutes.- Parameters:
duration- Integer
-
description
public TimeEntry description(String description)
A description of the time entry.- Parameters:
description- String- Returns:
- TimeEntry
-
getDescription
public String getDescription()
A description of the time entry.- Returns:
- description
-
setDescription
public void setDescription(String description)
A description of the time entry.- Parameters:
description- String
-
status
public TimeEntry status(TimeEntry.StatusEnum status)
Status of the time entry. By default a time entry is created with status of `ACTIVE`. A `LOCKED` state indicates that the time entry is currently changing state (for example being invoiced). Updates are not allowed when in this state. It will have a status of INVOICED once it is invoiced.- Parameters:
status- StatusEnum- Returns:
- TimeEntry
-
getStatus
public TimeEntry.StatusEnum getStatus()
Status of the time entry. By default a time entry is created with status of `ACTIVE`. A `LOCKED` state indicates that the time entry is currently changing state (for example being invoiced). Updates are not allowed when in this state. It will have a status of INVOICED once it is invoiced.- Returns:
- status
-
setStatus
public void setStatus(TimeEntry.StatusEnum status)
Status of the time entry. By default a time entry is created with status of `ACTIVE`. A `LOCKED` state indicates that the time entry is currently changing state (for example being invoiced). Updates are not allowed when in this state. It will have a status of INVOICED once it is invoiced.- Parameters:
status- StatusEnum
-
-