Interface ProductTypeImportRequest
- All Superinterfaces:
ImportRequest
The request body to import ProductTypes. Contains data for ProductTypes to be created or updated in a Project.
Example to create an instance using the builder pattern
ProductTypeImportRequest productTypeImportRequest = ProductTypeImportRequest.builder()
.plusResources(resourcesBuilder -> resourcesBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductTypeImportRequest -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductTypeImportRequestbuilder(ProductTypeImportRequest template) create builder for ProductTypeImportRequest instancecopyDeep()static ProductTypeImportRequestdeepCopy(ProductTypeImportRequest template) factory method to create a deep copy of ProductTypeImportRequest@NotNull @Valid List<ProductTypeImport>The product type import resources of this request.static ProductTypeImportRequestof()factory methodstatic ProductTypeImportRequestof(ProductTypeImportRequest template) factory method to create a shallow copy ProductTypeImportRequestvoidsetResources(ProductTypeImport... resources) The product type import resources of this request.voidsetResources(List<ProductTypeImport> resources) The product type import resources of this request.static com.fasterxml.jackson.core.type.TypeReference<ProductTypeImportRequest>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
-
PRODUCT_TYPE
discriminator value for ProductTypeImportRequest- See Also:
-
-
Method Details
-
getResources
The product type import resources of this request.
- Returns:
- resources
-
setResources
The product type import resources of this request.
- Parameters:
resources- values to be set
-
setResources
The product type import resources of this request.
- Parameters:
resources- values to be set
-
of
factory method- Returns:
- instance of ProductTypeImportRequest
-
of
factory method to create a shallow copy ProductTypeImportRequest- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductTypeImportRequest copyDeep()- Specified by:
copyDeepin interfaceImportRequest
-
deepCopy
factory method to create a deep copy of ProductTypeImportRequest- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTypeImportRequest- Returns:
- builder
-
builder
create builder for ProductTypeImportRequest instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductTypeImportRequest
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
-