Class TaskTokenImpl

java.lang.Object
com.commercetools.ml.models.common.TaskTokenImpl
All Implemented Interfaces:
TaskToken, io.vrap.rmf.base.client.ModelBase

public class TaskTokenImpl extends Object implements TaskToken, io.vrap.rmf.base.client.ModelBase

Represents a URL path to poll to get the results of an Asynchronous Request.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    The ID for the task.
    The URI path to poll for the status of the task.
    int
     
    void
    setTaskId(String taskId)
    The ID for the task.
    void
    setUriPath(String uriPath)
    The URI path to poll for the status of the task.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString

    Methods inherited from interface com.commercetools.ml.models.common.TaskToken

    withTaskToken
  • Constructor Details

    • TaskTokenImpl

      public TaskTokenImpl()
      create empty instance
  • Method Details

    • getTaskId

      public String getTaskId()

      The ID for the task. Used to find the status of the task.

      Specified by:
      getTaskId in interface TaskToken
      Returns:
      taskId
    • getUriPath

      public String getUriPath()

      The URI path to poll for the status of the task.

      Specified by:
      getUriPath in interface TaskToken
      Returns:
      uriPath
    • setTaskId

      public void setTaskId(String taskId)
      Description copied from interface: TaskToken

      The ID for the task. Used to find the status of the task.

      Specified by:
      setTaskId in interface TaskToken
      Parameters:
      taskId - value to be set
    • setUriPath

      public void setUriPath(String uriPath)
      Description copied from interface: TaskToken

      The URI path to poll for the status of the task.

      Specified by:
      setUriPath in interface TaskToken
      Parameters:
      uriPath - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object