Class Task


  • public class Task
    extends Object
    Task
    • Constructor Detail

      • Task

        public Task()
    • Method Detail

      • taskId

        public Task taskId​(UUID taskId)
        Identifier of the task.
        Parameters:
        taskId - UUID
        Returns:
        Task
      • getTaskId

        public UUID getTaskId()
        Identifier of the task.
        Returns:
        taskId
      • setTaskId

        public void setTaskId​(UUID taskId)
        Identifier of the task.
        Parameters:
        taskId - UUID
      • name

        public Task name​(String name)
        Name of the task.
        Parameters:
        name - String
        Returns:
        Task
      • getName

        public String getName()
        Name of the task.
        Returns:
        name
      • setName

        public void setName​(String name)
        Name of the task.
        Parameters:
        name - String
      • rate

        public Task rate​(Amount rate)
        rate
        Parameters:
        rate - Amount
        Returns:
        Task
      • getRate

        public Amount getRate()
        Get rate
        Returns:
        rate
      • setRate

        public void setRate​(Amount rate)
        rate
        Parameters:
        rate - Amount
      • chargeType

        public Task chargeType​(ChargeType chargeType)
        chargeType
        Parameters:
        chargeType - ChargeType
        Returns:
        Task
      • getChargeType

        public ChargeType getChargeType()
        Get chargeType
        Returns:
        chargeType
      • setChargeType

        public void setChargeType​(ChargeType chargeType)
        chargeType
        Parameters:
        chargeType - ChargeType
      • estimateMinutes

        public Task estimateMinutes​(Double estimateMinutes)
        An estimated time to perform the task
        Parameters:
        estimateMinutes - Double
        Returns:
        Task
      • getEstimateMinutes

        public Double getEstimateMinutes()
        An estimated time to perform the task
        Returns:
        estimateMinutes
      • setEstimateMinutes

        public void setEstimateMinutes​(Double estimateMinutes)
        An estimated time to perform the task
        Parameters:
        estimateMinutes - Double
      • projectId

        public Task projectId​(UUID projectId)
        Identifier of the project task belongs to.
        Parameters:
        projectId - UUID
        Returns:
        Task
      • getProjectId

        public UUID getProjectId()
        Identifier of the project task belongs to.
        Returns:
        projectId
      • setProjectId

        public void setProjectId​(UUID projectId)
        Identifier of the project task belongs to.
        Parameters:
        projectId - UUID
      • totalMinutes

        public Task totalMinutes​(Double totalMinutes)
        Total minutes which have been logged against the task. Logged by assigning a time entry to a task
        Parameters:
        totalMinutes - Double
        Returns:
        Task
      • getTotalMinutes

        public Double getTotalMinutes()
        Total minutes which have been logged against the task. Logged by assigning a time entry to a task
        Returns:
        totalMinutes
      • setTotalMinutes

        public void setTotalMinutes​(Double totalMinutes)
        Total minutes which have been logged against the task. Logged by assigning a time entry to a task
        Parameters:
        totalMinutes - Double
      • totalAmount

        public Task totalAmount​(Amount totalAmount)
        totalAmount
        Parameters:
        totalAmount - Amount
        Returns:
        Task
      • getTotalAmount

        public Amount getTotalAmount()
        Get totalAmount
        Returns:
        totalAmount
      • setTotalAmount

        public void setTotalAmount​(Amount totalAmount)
        totalAmount
        Parameters:
        totalAmount - Amount
      • minutesInvoiced

        public Task minutesInvoiced​(Double minutesInvoiced)
        Minutes on this task which have been invoiced.
        Parameters:
        minutesInvoiced - Double
        Returns:
        Task
      • getMinutesInvoiced

        public Double getMinutesInvoiced()
        Minutes on this task which have been invoiced.
        Returns:
        minutesInvoiced
      • setMinutesInvoiced

        public void setMinutesInvoiced​(Double minutesInvoiced)
        Minutes on this task which have been invoiced.
        Parameters:
        minutesInvoiced - Double
      • minutesToBeInvoiced

        public Task minutesToBeInvoiced​(Double minutesToBeInvoiced)
        Minutes on this task which have not been invoiced.
        Parameters:
        minutesToBeInvoiced - Double
        Returns:
        Task
      • getMinutesToBeInvoiced

        public Double getMinutesToBeInvoiced()
        Minutes on this task which have not been invoiced.
        Returns:
        minutesToBeInvoiced
      • setMinutesToBeInvoiced

        public void setMinutesToBeInvoiced​(Double minutesToBeInvoiced)
        Minutes on this task which have not been invoiced.
        Parameters:
        minutesToBeInvoiced - Double
      • fixedMinutes

        public Task fixedMinutes​(Double fixedMinutes)
        Minutes logged against this task if its charge type is `FIXED`.
        Parameters:
        fixedMinutes - Double
        Returns:
        Task
      • getFixedMinutes

        public Double getFixedMinutes()
        Minutes logged against this task if its charge type is `FIXED`.
        Returns:
        fixedMinutes
      • setFixedMinutes

        public void setFixedMinutes​(Double fixedMinutes)
        Minutes logged against this task if its charge type is `FIXED`.
        Parameters:
        fixedMinutes - Double
      • nonChargeableMinutes

        public Task nonChargeableMinutes​(Double nonChargeableMinutes)
        Minutes logged against this task if its charge type is `NON_CHARGEABLE`.
        Parameters:
        nonChargeableMinutes - Double
        Returns:
        Task
      • getNonChargeableMinutes

        public Double getNonChargeableMinutes()
        Minutes logged against this task if its charge type is `NON_CHARGEABLE`.
        Returns:
        nonChargeableMinutes
      • setNonChargeableMinutes

        public void setNonChargeableMinutes​(Double nonChargeableMinutes)
        Minutes logged against this task if its charge type is `NON_CHARGEABLE`.
        Parameters:
        nonChargeableMinutes - Double
      • amountToBeInvoiced

        public Task amountToBeInvoiced​(Amount amountToBeInvoiced)
        amountToBeInvoiced
        Parameters:
        amountToBeInvoiced - Amount
        Returns:
        Task
      • getAmountToBeInvoiced

        public Amount getAmountToBeInvoiced()
        Get amountToBeInvoiced
        Returns:
        amountToBeInvoiced
      • setAmountToBeInvoiced

        public void setAmountToBeInvoiced​(Amount amountToBeInvoiced)
        amountToBeInvoiced
        Parameters:
        amountToBeInvoiced - Amount
      • amountInvoiced

        public Task amountInvoiced​(Amount amountInvoiced)
        amountInvoiced
        Parameters:
        amountInvoiced - Amount
        Returns:
        Task
      • getAmountInvoiced

        public Amount getAmountInvoiced()
        Get amountInvoiced
        Returns:
        amountInvoiced
      • setAmountInvoiced

        public void setAmountInvoiced​(Amount amountInvoiced)
        amountInvoiced
        Parameters:
        amountInvoiced - Amount
      • status

        public Task status​(Task.StatusEnum status)
        Status of the task. When a task of ChargeType is `FIXED` and the rate amount is invoiced the status will be set to `INVOICED` and can't be modified. A task with ChargeType of `TIME` or `NON_CHARGEABLE` cannot have a status of `INVOICED`. A `LOCKED` state indicates that the task is currently changing state (for example being invoiced) and can't be modified.
        Parameters:
        status - StatusEnum
        Returns:
        Task
      • getStatus

        public Task.StatusEnum getStatus()
        Status of the task. When a task of ChargeType is `FIXED` and the rate amount is invoiced the status will be set to `INVOICED` and can't be modified. A task with ChargeType of `TIME` or `NON_CHARGEABLE` cannot have a status of `INVOICED`. A `LOCKED` state indicates that the task is currently changing state (for example being invoiced) and can't be modified.
        Returns:
        status
      • setStatus

        public void setStatus​(Task.StatusEnum status)
        Status of the task. When a task of ChargeType is `FIXED` and the rate amount is invoiced the status will be set to `INVOICED` and can't be modified. A task with ChargeType of `TIME` or `NON_CHARGEABLE` cannot have a status of `INVOICED`. A `LOCKED` state indicates that the task is currently changing state (for example being invoiced) and can't be modified.
        Parameters:
        status - StatusEnum
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object