Interface CategoryImportRequest
- All Superinterfaces:
ImportRequest
The request body to import Categories. Contains data for Categories to be created or updated in a Project.
Example to create an instance using the builder pattern
CategoryImportRequest categoryImportRequest = CategoryImportRequest.builder()
.plusResources(resourcesBuilder -> resourcesBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CategoryImportRequestBuilder
builder()
builder factory method for CategoryImportRequeststatic CategoryImportRequestBuilder
builder
(CategoryImportRequest template) create builder for CategoryImportRequest instancestatic CategoryImportRequest
deepCopy
(CategoryImportRequest template) factory method to create a deep copy of CategoryImportRequest@NotNull @Valid List<CategoryImport>
The category import resources of this request.static CategoryImportRequest
of()
factory methodstatic CategoryImportRequest
of
(CategoryImportRequest template) factory method to create a shallow copy CategoryImportRequestvoid
setResources
(CategoryImport... resources) The category import resources of this request.void
setResources
(List<CategoryImport> resources) The category import resources of this request.static com.fasterxml.jackson.core.type.TypeReference<CategoryImportRequest>
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
-
CATEGORY
discriminator value for CategoryImportRequest- See Also:
-
-
Method Details
-
getResources
The category import resources of this request.
- Returns:
- resources
-
setResources
The category import resources of this request.
- Parameters:
resources
- values to be set
-
setResources
The category import resources of this request.
- Parameters:
resources
- values to be set
-
of
factory method- Returns:
- instance of CategoryImportRequest
-
of
factory method to create a shallow copy CategoryImportRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CategoryImportRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CategoryImportRequest- Returns:
- builder
-
builder
create builder for CategoryImportRequest instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCategoryImportRequest
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
-