Interface SimilarProductsTaskStatus
public interface SimilarProductsTaskStatus
Represents a URL path to poll to get the results of an Asynchronous Request.
Example to create an instance using the builder pattern
SimilarProductsTaskStatus similarProductsTaskStatus = SimilarProductsTaskStatus.builder()
.state(TaskStatusEnum.PENDING)
.result(resultBuilder -> resultBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for SimilarProductsTaskStatusbuilder
(SimilarProductsTaskStatus template) create builder for SimilarProductsTaskStatus instancestatic SimilarProductsTaskStatus
deepCopy
(SimilarProductsTaskStatus template) factory method to create a deep copy of SimilarProductsTaskStatusThe expiry date of the result.@NotNull @Valid SimilarProductsPagedQueryResult
The response to an asynchronous request.@NotNull TaskStatusEnum
getState()
static SimilarProductsTaskStatus
of()
factory methodstatic SimilarProductsTaskStatus
of
(SimilarProductsTaskStatus template) factory method to create a shallow copy SimilarProductsTaskStatusvoid
setExpires
(ZonedDateTime expires) The expiry date of the result.void
The response to an asynchronous request.void
setState
(TaskStatusEnum state) set statestatic com.fasterxml.jackson.core.type.TypeReference<SimilarProductsTaskStatus>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getState
- Returns:
- state
-
getExpires
ZonedDateTime getExpires()The expiry date of the result. You cannot access the result after the expiry date. Default: 1 day after the result first becomes available. This is only available when the TaskStatus state is SUCCESS.
- Returns:
- expires
-
getResult
The response to an asynchronous request. The type depends on the request initiated. Only populated when the status is
SUCCESS
.- Returns:
- result
-
setState
set state- Parameters:
state
- value to be set
-
setExpires
The expiry date of the result. You cannot access the result after the expiry date. Default: 1 day after the result first becomes available. This is only available when the TaskStatus state is SUCCESS.
- Parameters:
expires
- value to be set
-
setResult
The response to an asynchronous request. The type depends on the request initiated. Only populated when the status is
SUCCESS
.- Parameters:
result
- value to be set
-
of
factory method- Returns:
- instance of SimilarProductsTaskStatus
-
of
factory method to create a shallow copy SimilarProductsTaskStatus- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of SimilarProductsTaskStatus- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for SimilarProductsTaskStatus- Returns:
- builder
-
builder
create builder for SimilarProductsTaskStatus instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withSimilarProductsTaskStatus
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
-