Class TaskTokenBuilder
java.lang.Object
com.commercetools.ml.models.common.TaskTokenBuilder
TaskTokenBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TaskToken taskToken = TaskToken.builder()
.taskId("{taskId}")
.uriPath("{uriPath}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds TaskToken with checking for non-null required valuesbuilds TaskToken without checking for non-null required valuesThe ID for the task.The URI path to poll for the status of the task.static TaskTokenBuilder
of()
factory method for an instance of TaskTokenBuilderstatic TaskTokenBuilder
create builder for TaskToken instanceThe ID for the task.The URI path to poll for the status of the task.
-
Constructor Details
-
TaskTokenBuilder
public TaskTokenBuilder()
-
-
Method Details
-
taskId
The ID for the task. Used to find the status of the task.
- Parameters:
taskId
- value to be set- Returns:
- Builder
-
uriPath
The URI path to poll for the status of the task.
- Parameters:
uriPath
- value to be set- Returns:
- Builder
-
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
-
build
builds TaskToken with checking for non-null required values -
buildUnchecked
builds TaskToken without checking for non-null required values- Returns:
- TaskToken
-
of
factory method for an instance of TaskTokenBuilder- Returns:
- builder
-
of
create builder for TaskToken instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-