Package com.xero.models.project
Class TimeEntryCreateOrUpdate
- java.lang.Object
-
- com.xero.models.project.TimeEntryCreateOrUpdate
-
public class TimeEntryCreateOrUpdate extends Object
TimeEntryCreateOrUpdate
-
-
Constructor Summary
Constructors Constructor Description TimeEntryCreateOrUpdate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeEntryCreateOrUpdatedateUtc(org.threeten.bp.OffsetDateTime dateUtc)Date time entry is logged on.TimeEntryCreateOrUpdatedescription(String description)An optional description of the time entry, will be set to null if not provided during update.TimeEntryCreateOrUpdateduration(Integer duration)Number of minutes to be logged.booleanequals(Object o)org.threeten.bp.OffsetDateTimegetDateUtc()Date time entry is logged on.StringgetDescription()An optional description of the time entry, will be set to null if not provided during update.IntegergetDuration()Number of minutes to be logged.UUIDgetTaskId()Identifier of the task that time entry is logged against.UUIDgetUserId()The xero user identifier of the person logging the time.inthashCode()voidsetDateUtc(org.threeten.bp.OffsetDateTime dateUtc)Date time entry is logged on.voidsetDescription(String description)An optional description of the time entry, will be set to null if not provided during update.voidsetDuration(Integer duration)Number of minutes to be logged.voidsetTaskId(UUID taskId)Identifier of the task that time entry is logged against.voidsetUserId(UUID userId)The xero user identifier of the person logging the time.TimeEntryCreateOrUpdatetaskId(UUID taskId)Identifier of the task that time entry is logged against.StringtoString()TimeEntryCreateOrUpdateuserId(UUID userId)The xero user identifier of the person logging the time.
-
-
-
Method Detail
-
userId
public TimeEntryCreateOrUpdate userId(UUID userId)
The xero user identifier of the person logging the time.- Parameters:
userId- UUID- Returns:
- TimeEntryCreateOrUpdate
-
getUserId
public UUID getUserId()
The xero user identifier of the person logging the time.- Returns:
- userId
-
setUserId
public void setUserId(UUID userId)
The xero user identifier of the person logging the time.- Parameters:
userId- UUID
-
taskId
public TimeEntryCreateOrUpdate taskId(UUID taskId)
Identifier of the task that time entry is logged against.- Parameters:
taskId- UUID- Returns:
- TimeEntryCreateOrUpdate
-
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 TimeEntryCreateOrUpdate dateUtc(org.threeten.bp.OffsetDateTime dateUtc)
Date time entry is logged on. UTC Date Time in ISO-8601 format.- Parameters:
dateUtc- OffsetDateTime- Returns:
- TimeEntryCreateOrUpdate
-
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)
Date time entry is logged on. UTC Date Time in ISO-8601 format.- Parameters:
dateUtc- OffsetDateTime
-
duration
public TimeEntryCreateOrUpdate duration(Integer duration)
Number of minutes to be logged. Duration is between 1 and 59940 inclusively.- Parameters:
duration- Integer- Returns:
- TimeEntryCreateOrUpdate
-
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)
Number of minutes to be logged. Duration is between 1 and 59940 inclusively.- Parameters:
duration- Integer
-
description
public TimeEntryCreateOrUpdate description(String description)
An optional description of the time entry, will be set to null if not provided during update.- Parameters:
description- String- Returns:
- TimeEntryCreateOrUpdate
-
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)
An optional description of the time entry, will be set to null if not provided during update.- Parameters:
description- String
-
-