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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CategoryImportRequestBuilderbuilder()builder factory method for CategoryImportRequeststatic CategoryImportRequestBuilderbuilder(CategoryImportRequest template) create builder for CategoryImportRequest instancecopyDeep()static CategoryImportRequestdeepCopy(CategoryImportRequest template) factory method to create a deep copy of CategoryImportRequest@NotNull @Valid List<CategoryImport>The category import resources of this request.static CategoryImportRequestof()factory methodstatic CategoryImportRequestof(CategoryImportRequest template) factory method to create a shallow copy CategoryImportRequestvoidsetResources(CategoryImport... resources) The category import resources of this request.voidsetResources(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> Taccessor 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
-
copyDeep
CategoryImportRequest copyDeep()- Specified by:
copyDeepin interfaceImportRequest
-
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
-