public interface TaskToken
Represents a URL path to poll to get the results of an Asynchronous Request.
TaskToken taskToken = TaskToken.builder()
.taskId("{taskId}")
.uriPath("{uriPath}")
.build()
| Modifier and Type | Method and Description |
|---|---|
static TaskTokenBuilder |
builder() |
static TaskTokenBuilder |
builder(TaskToken template) |
@NotNull String |
getTaskId()
The ID for the task.
|
@NotNull String |
getUriPath()
The URI path to poll for the status of the task.
|
static TaskToken |
of() |
static TaskToken |
of(TaskToken template) |
void |
setTaskId(String taskId) |
void |
setUriPath(String uriPath) |
static com.fasterxml.jackson.core.type.TypeReference<TaskToken> |
typeReference() |
default <T> T |
withTaskToken(Function<TaskToken,T> helper) |
@NotNull @NotNull String getTaskId()
The ID for the task. Used to find the status of the task.
@NotNull @NotNull String getUriPath()
The URI path to poll for the status of the task.
void setUriPath(String uriPath)
static TaskTokenBuilder builder()
static TaskTokenBuilder builder(TaskToken template)
default <T> T withTaskToken(Function<TaskToken,T> helper)
static com.fasterxml.jackson.core.type.TypeReference<TaskToken> typeReference()