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 TaskTokenBuilderbuilder()builder factory method for TaskTokenstatic TaskTokenBuildercreate builder for TaskToken instancestatic TaskTokenfactory method to create a deep copy of TaskToken@NotNull StringThe ID for the task.@NotNull StringThe URI path to poll for the status of the task.static TaskTokenof()factory methodstatic TaskTokenfactory method to create a shallow copy TaskTokenvoidThe ID for the task.voidsetUriPath(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> TwithTaskToken(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
-