Interface ImportResponse
public interface ImportResponse
A list of the ID's and validation statuses of newly created ImportOperations. Used as a response at each resource-specific import endpoint, for example, at Import Categories and Import ProductTypes.
Example to create an instance using the builder pattern
ImportResponse importResponse = ImportResponse.builder()
.plusOperationStatus(operationStatusBuilder -> operationStatusBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImportResponseBuilder
builder()
builder factory method for ImportResponsestatic ImportResponseBuilder
builder
(ImportResponse template) create builder for ImportResponse instancestatic ImportResponse
deepCopy
(ImportResponse template) factory method to create a deep copy of ImportResponse@NotNull @Valid List<ImportOperationStatus>
static ImportResponse
of()
factory methodstatic ImportResponse
of
(ImportResponse template) factory method to create a shallow copy ImportResponsevoid
setOperationStatus
(ImportOperationStatus... operationStatus) set operationStatusvoid
setOperationStatus
(List<ImportOperationStatus> operationStatus) set operationStatusstatic com.fasterxml.jackson.core.type.TypeReference<ImportResponse>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withImportResponse
(Function<ImportResponse, T> helper) accessor map function
-
Method Details
-
getOperationStatus
- Returns:
- operationStatus
-
setOperationStatus
set operationStatus- Parameters:
operationStatus
- values to be set
-
setOperationStatus
set operationStatus- Parameters:
operationStatus
- values to be set
-
of
factory method- Returns:
- instance of ImportResponse
-
of
factory method to create a shallow copy ImportResponse- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ImportResponse- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ImportResponse- Returns:
- builder
-
builder
create builder for ImportResponse instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withImportResponse
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
-