Interface OrderPatchImportRequest
- All Superinterfaces:
ImportRequest
The request body to import OrderPatches. The data to be imported are represented by OrderPatchImport.
Example to create an instance using the builder pattern
OrderPatchImportRequest orderPatchImportRequest = OrderPatchImportRequest.builder()
.plusPatches(patchesBuilder -> patchesBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderPatchImportRequest -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderPatchImportRequestbuilder
(OrderPatchImportRequest template) create builder for OrderPatchImportRequest instancestatic OrderPatchImportRequest
deepCopy
(OrderPatchImportRequest template) factory method to create a deep copy of OrderPatchImportRequest@NotNull @Valid List<OrderPatchImport>
The order patches of this requeststatic OrderPatchImportRequest
of()
factory methodstatic OrderPatchImportRequest
of
(OrderPatchImportRequest template) factory method to create a shallow copy OrderPatchImportRequestvoid
setPatches
(OrderPatchImport... patches) The order patches of this requestvoid
setPatches
(List<OrderPatchImport> patches) The order patches of this requeststatic com.fasterxml.jackson.core.type.TypeReference<OrderPatchImportRequest>
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
-
ORDER_PATCH
discriminator value for OrderPatchImportRequest- See Also:
-
-
Method Details
-
getPatches
The order patches of this request
- Returns:
- patches
-
setPatches
The order patches of this request
- Parameters:
patches
- values to be set
-
setPatches
The order patches of this request
- Parameters:
patches
- values to be set
-
of
factory method- Returns:
- instance of OrderPatchImportRequest
-
of
factory method to create a shallow copy OrderPatchImportRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderPatchImportRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderPatchImportRequest- Returns:
- builder
-
builder
create builder for OrderPatchImportRequest instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderPatchImportRequest
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
-