public interface SimilarProductsTaskStatus
Represents a URL path to poll to get the results of an Asynchronous Request.
SimilarProductsTaskStatus similarProductsTaskStatus = SimilarProductsTaskStatus.builder()
.state(TaskStatusEnum.PENDING)
.result(resultBuilder -> resultBuilder)
.build()
| Modifier and Type | Method and Description |
|---|---|
static SimilarProductsTaskStatusBuilder |
builder() |
static SimilarProductsTaskStatusBuilder |
builder(SimilarProductsTaskStatus template) |
ZonedDateTime |
getExpires()
The expiry date of the result.
|
@NotNull @Valid SimilarProductsPagedQueryResult |
getResult()
The response to an asynchronous request.
|
@NotNull TaskStatusEnum |
getState() |
static SimilarProductsTaskStatus |
of() |
static SimilarProductsTaskStatus |
of(SimilarProductsTaskStatus template) |
void |
setExpires(ZonedDateTime expires) |
void |
setResult(SimilarProductsPagedQueryResult result) |
void |
setState(TaskStatusEnum state) |
static com.fasterxml.jackson.core.type.TypeReference<SimilarProductsTaskStatus> |
typeReference() |
default <T> T |
withSimilarProductsTaskStatus(Function<SimilarProductsTaskStatus,T> helper) |
@NotNull @NotNull TaskStatusEnum getState()
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.
@NotNull @Valid @NotNull @Valid SimilarProductsPagedQueryResult getResult()
The response to an asynchronous request. The type depends on the request initiated. Only populated when the status is SUCCESS.
void setState(TaskStatusEnum state)
void setExpires(ZonedDateTime expires)
void setResult(SimilarProductsPagedQueryResult result)
static SimilarProductsTaskStatus of()
static SimilarProductsTaskStatus of(SimilarProductsTaskStatus template)
static SimilarProductsTaskStatusBuilder builder()
static SimilarProductsTaskStatusBuilder builder(SimilarProductsTaskStatus template)
default <T> T withSimilarProductsTaskStatus(Function<SimilarProductsTaskStatus,T> helper)
static com.fasterxml.jackson.core.type.TypeReference<SimilarProductsTaskStatus> typeReference()