Class WorkitemCreate

java.lang.Object
com.mypurecloud.sdk.v2.model.WorkitemCreate
All Implemented Interfaces:
Serializable

public class WorkitemCreate extends Object implements Serializable
WorkitemCreate
See Also:
  • Constructor Details

    • WorkitemCreate

      public WorkitemCreate()
    • WorkitemCreate

      public WorkitemCreate(Boolean initWithEmptyList)
  • Method Details

    • name

      public WorkitemCreate name(String name)
      The name of the Workitem. Valid length between 3 and 256 characters.
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • priority

      public WorkitemCreate priority(Integer priority)
      The priority of the Workitem. The valid range is between -25,000,000 and 25,000,000.
    • getPriority

      public Integer getPriority()
    • setPriority

      public void setPriority(Integer priority)
    • dateDue

      public WorkitemCreate dateDue(Date dateDue)
      The due date of the Workitem. Can not be greater than 365 days from the current time. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
    • getDateDue

      public Date getDateDue()
    • setDateDue

      public void setDateDue(Date dateDue)
    • dateExpires

      public WorkitemCreate dateExpires(Date dateExpires)
      The expiry date of the Workitem. Can not be greater than 365 days from the current time. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
    • getDateExpires

      public Date getDateExpires()
    • setDateExpires

      public void setDateExpires(Date dateExpires)
    • durationSeconds

      public WorkitemCreate durationSeconds(Integer durationSeconds)
      The estimated duration in seconds to complete the Workitem. Maximum of 365 days.
    • getDurationSeconds

      public Integer getDurationSeconds()
    • setDurationSeconds

      public void setDurationSeconds(Integer durationSeconds)
    • ttl

      public WorkitemCreate ttl(Integer ttl)
      The epoch timestamp in seconds specifying the time to live for the Workitem. Can not be greater than 365 days from the current time.
    • getTtl

      public Integer getTtl()
    • setTtl

      public void setTtl(Integer ttl)
    • statusId

      public WorkitemCreate statusId(String statusId)
      The ID of the Status of the Workitem.
    • getStatusId

      public String getStatusId()
    • setStatusId

      public void setStatusId(String statusId)
    • workbinId

      public WorkitemCreate workbinId(String workbinId)
      The ID of Workbin that contains the Workitem.
    • getWorkbinId

      public String getWorkbinId()
    • setWorkbinId

      public void setWorkbinId(String workbinId)
    • autoStatusTransition

      public WorkitemCreate autoStatusTransition(Boolean autoStatusTransition)
      Set it to false to disable auto status transition. By default, it is enabled.
    • getAutoStatusTransition

      public Boolean getAutoStatusTransition()
    • setAutoStatusTransition

      public void setAutoStatusTransition(Boolean autoStatusTransition)
    • description

      public WorkitemCreate description(String description)
      The description of the Workitem. Maximum length of 512 characters.
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • typeId

      public WorkitemCreate typeId(String typeId)
      The ID of the Worktype of the Workitem.
    • getTypeId

      public String getTypeId()
    • setTypeId

      public void setTypeId(String typeId)
    • customFields

      public WorkitemCreate customFields(Map<String,Object> customFields)
      Custom fields defined in the schema referenced by the worktype of the workitem.
    • getCustomFields

      public Map<String,Object> getCustomFields()
    • setCustomFields

      public void setCustomFields(Map<String,Object> customFields)
    • queueId

      public WorkitemCreate queueId(String queueId)
      The ID of the Workitems queue. Must be a valid UUID.
    • getQueueId

      public String getQueueId()
    • setQueueId

      public void setQueueId(String queueId)
    • assigneeId

      public WorkitemCreate assigneeId(String assigneeId)
      The ID of the assignee of the Workitem. Must be a valid UUID.
    • getAssigneeId

      public String getAssigneeId()
    • setAssigneeId

      public void setAssigneeId(String assigneeId)
    • languageId

      public WorkitemCreate languageId(String languageId)
      The ID of language of the Workitem. Must be a valid UUID.
    • getLanguageId

      public String getLanguageId()
    • setLanguageId

      public void setLanguageId(String languageId)
    • externalContactId

      public WorkitemCreate externalContactId(String externalContactId)
      The ID of the external contact of the Workitem. Must be a valid UUID.
    • getExternalContactId

      public String getExternalContactId()
    • setExternalContactId

      public void setExternalContactId(String externalContactId)
    • externalTag

      public WorkitemCreate externalTag(String externalTag)
      The external tag of the Workitem.
    • getExternalTag

      public String getExternalTag()
    • setExternalTag

      public void setExternalTag(String externalTag)
    • skillIds

      public WorkitemCreate skillIds(List<String> skillIds)
      The skill IDs of the Workitem. Must be valid UUIDs.
    • getSkillIds

      public List<String> getSkillIds()
    • setSkillIds

      public void setSkillIds(List<String> skillIds)
    • scriptId

      public WorkitemCreate scriptId(String scriptId)
      The ID of the Workitems script. Must be a valid UUID.
    • getScriptId

      public String getScriptId()
    • setScriptId

      public void setScriptId(String scriptId)
    • wrapupCode

      public WorkitemCreate wrapupCode(String wrapupCode)
      The ID of the wrapup. Must be a valid UUID.
    • getWrapupCode

      public String getWrapupCode()
    • setWrapupCode

      public void setWrapupCode(String wrapupCode)
    • utilizationLabelId

      public WorkitemCreate utilizationLabelId(String utilizationLabelId)
      The ID of utilization label of the Workitem. Must be a valid UUID.
    • getUtilizationLabelId

      public String getUtilizationLabelId()
    • setUtilizationLabelId

      public void setUtilizationLabelId(String utilizationLabelId)
    • scoredAgents

      public WorkitemCreate scoredAgents(List<WorkitemScoredAgentRequest> scoredAgents)
      A list of scored agents for the Workitem. A workitem can have a maximum of 20 scored agents.
    • getScoredAgents

      public List<WorkitemScoredAgentRequest> getScoredAgents()
    • setScoredAgents

      public void setScoredAgents(List<WorkitemScoredAgentRequest> scoredAgents)
    • preferredAgentIds

      public WorkitemCreate preferredAgentIds(List<String> preferredAgentIds)
      The preferred agent IDs of the Workitem. Must be valid UUIDs.
    • getPreferredAgentIds

      public List<String> getPreferredAgentIds()
    • setPreferredAgentIds

      public void setPreferredAgentIds(List<String> preferredAgentIds)
    • 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