Interface ProductDraftImportRequest
- All Superinterfaces:
ImportRequest
The request body to import ProductDrafts. Contains data for Products to be created or updated in a Project.
Example to create an instance using the builder pattern
ProductDraftImportRequest productDraftImportRequest = ProductDraftImportRequest.builder()
.plusResources(resourcesBuilder -> resourcesBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductDraftImportRequest -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductDraftImportRequestbuilder
(ProductDraftImportRequest template) create builder for ProductDraftImportRequest instancestatic ProductDraftImportRequest
deepCopy
(ProductDraftImportRequest template) factory method to create a deep copy of ProductDraftImportRequest@NotNull @Valid List<ProductDraftImport>
The product draft import resources of this request.static ProductDraftImportRequest
of()
factory methodstatic ProductDraftImportRequest
of
(ProductDraftImportRequest template) factory method to create a shallow copy ProductDraftImportRequestvoid
setResources
(ProductDraftImport... resources) The product draft import resources of this request.void
setResources
(List<ProductDraftImport> resources) The product draft import resources of this request.static com.fasterxml.jackson.core.type.TypeReference<ProductDraftImportRequest>
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
-
PRODUCT_DRAFT
discriminator value for ProductDraftImportRequest- See Also:
-
-
Method Details
-
getResources
The product draft import resources of this request.
- Returns:
- resources
-
setResources
The product draft import resources of this request.
- Parameters:
resources
- values to be set
-
setResources
The product draft import resources of this request.
- Parameters:
resources
- values to be set
-
of
factory method- Returns:
- instance of ProductDraftImportRequest
-
of
factory method to create a shallow copy ProductDraftImportRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductDraftImportRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductDraftImportRequest- Returns:
- builder
-
builder
create builder for ProductDraftImportRequest instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductDraftImportRequest
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
-