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