Interface TaskToken
public interface TaskToken
Represents a URL path to poll to get the results of an Asynchronous Request.
Example to create an instance using the builder pattern
TaskToken taskToken = TaskToken.builder()
.taskId("{taskId}")
.uriPath("{uriPath}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic TaskTokenBuilder
builder()
builder factory method for TaskTokenstatic TaskTokenBuilder
create builder for TaskToken instancestatic TaskToken
factory method to create a deep copy of TaskToken@NotNull String
The ID for the task.@NotNull String
The URI path to poll for the status of the task.static TaskToken
of()
factory methodstatic TaskToken
factory method to create a shallow copy TaskTokenvoid
The ID for the task.void
setUriPath
(String uriPath) The URI path to poll for the status of the task.static com.fasterxml.jackson.core.type.TypeReference<TaskToken>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withTaskToken
(Function<TaskToken, T> helper) accessor map function
-
Method Details
-
getTaskId
The ID for the task. Used to find the status of the task.
- Returns:
- taskId
-
getUriPath
The URI path to poll for the status of the task.
- Returns:
- uriPath
-
setTaskId
The ID for the task. Used to find the status of the task.
- Parameters:
taskId
- value to be set
-
setUriPath
The URI path to poll for the status of the task.
- Parameters:
uriPath
- value to be set
-
of
factory method- Returns:
- instance of TaskToken
-
of
factory method to create a shallow copy TaskToken- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of TaskToken- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TaskToken- Returns:
- builder
-
builder
create builder for TaskToken instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withTaskToken
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-