Class Task.TaskBuilder<C extends Task,B extends Task.TaskBuilder<C,B>>

Enclosing class:
Task

public abstract static class Task.TaskBuilder<C extends Task,B extends Task.TaskBuilder<C,B>> extends Asset.AssetBuilder<C,B>
  • Constructor Details

    • TaskBuilder

      public TaskBuilder()
  • Method Details

    • $fillValuesFrom

      protected B $fillValuesFrom(C instance)
      Overrides:
      $fillValuesFrom in class Asset.AssetBuilder<C extends Task,B extends Task.TaskBuilder<C,B>>
    • typeName

      public B typeName(String typeName)
      Fixed typeName for Tasks.
      Overrides:
      typeName in class Reference.ReferenceBuilder<C extends Task,B extends Task.TaskBuilder<C,B>>
      Returns:
      this.
    • taskAction

      public B taskAction(Action taskAction)
    • taskActions

      public B taskActions(Collection<? extends Action> taskActions)
    • clearTaskActions

      public B clearTaskActions()
    • taskCreatedBy

      public B taskCreatedBy(String taskCreatedBy)
      Username of the user who created this task.
      Returns:
      this.
    • taskExecutionAction

      public B taskExecutionAction(String taskExecutionAction)
      Action executed by the recipient.
      Returns:
      this.
    • taskExecutionComment

      public B taskExecutionComment(String taskExecutionComment)
      Comment for the action executed by user.
      Returns:
      this.
    • taskExpiresAt

      public B taskExpiresAt(Long taskExpiresAt)
      Time (epoch) at which the task expires.
      Returns:
      this.
    • taskIntegrationConfig

      public B taskIntegrationConfig(String taskIntegrationConfig)
      Contains external integration config for the task.
      Returns:
      this.
    • taskIsRead

      public B taskIsRead(Boolean taskIsRead)
      Flag to make task read/unread.
      Returns:
      this.
    • taskProposals

      public B taskProposals(String taskProposals)
      Contains the payload that is proposed to the task.
      Returns:
      this.
    • taskRecipient

      public B taskRecipient(String taskRecipient)
      Recipient of the task.
      Returns:
      this.
    • taskRelatedAssetGuid

      public B taskRelatedAssetGuid(String taskRelatedAssetGuid)
      Unique identifier of the asset to preview.
      Returns:
      this.
    • taskRequestor

      public B taskRequestor(String taskRequestor)
      Requestor of the task.
      Returns:
      this.
    • taskRequestorComment

      public B taskRequestorComment(String taskRequestorComment)
      Comment of requestor for the task.
      Returns:
      this.
    • taskType

      public B taskType(String taskType)
      Type of task.
      Returns:
      this.
    • taskUpdatedBy

      public B taskUpdatedBy(String taskUpdatedBy)
      Username of the user who updated this task.
      Returns:
      this.
    • self

      protected abstract B self()
      Specified by:
      self in class Asset.AssetBuilder<C extends Task,B extends Task.TaskBuilder<C,B>>
    • build

      public abstract C build()
      Specified by:
      build in class Asset.AssetBuilder<C extends Task,B extends Task.TaskBuilder<C,B>>
    • toString

      public String toString()
      Overrides:
      toString in class Asset.AssetBuilder<C extends Task,B extends Task.TaskBuilder<C,B>>