Interface ProductImportRequest
- All Superinterfaces:
ImportRequest
The request body to import Products. Contains data for Products to be created or updated in a Project.
Example to create an instance using the builder pattern
ProductImportRequest productImportRequest = ProductImportRequest.builder()
.plusResources(resourcesBuilder -> resourcesBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProductImportRequestBuilder
builder()
builder factory method for ProductImportRequeststatic ProductImportRequestBuilder
builder
(ProductImportRequest template) create builder for ProductImportRequest instancestatic ProductImportRequest
deepCopy
(ProductImportRequest template) factory method to create a deep copy of ProductImportRequest@NotNull @Valid List<ProductImport>
The product import resources of this request.static ProductImportRequest
of()
factory methodstatic ProductImportRequest
of
(ProductImportRequest template) factory method to create a shallow copy ProductImportRequestvoid
setResources
(ProductImport... resources) The product import resources of this request.void
setResources
(List<ProductImport> resources) The product import resources of this request.static com.fasterxml.jackson.core.type.TypeReference<ProductImportRequest>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductImportRequest
(Function<ProductImportRequest, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.importrequests.ImportRequest
getType, withImportRequest
-
Field Details
-
PRODUCT
discriminator value for ProductImportRequest- See Also:
-
-
Method Details
-
getResources
The product import resources of this request.
- Returns:
- resources
-
setResources
The product import resources of this request.
- Parameters:
resources
- values to be set
-
setResources
The product import resources of this request.
- Parameters:
resources
- values to be set
-
of
factory method- Returns:
- instance of ProductImportRequest
-
of
factory method to create a shallow copy ProductImportRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductImportRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductImportRequest- Returns:
- builder
-
builder
create builder for ProductImportRequest instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductImportRequest
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
-