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