Interface ProductCatalogData
- All Superinterfaces:
ProductCatalogDataMixin
Contains the current and staged ProductData.
Example to create an instance using the builder pattern
ProductCatalogData productCatalogData = ProductCatalogData.builder()
.published(true)
.current(currentBuilder -> currentBuilder)
.staged(stagedBuilder -> stagedBuilder)
.hasStagedChanges(true)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProductCatalogDataBuilderbuilder()builder factory method for ProductCatalogDatastatic ProductCatalogDataBuilderbuilder(ProductCatalogData template) create builder for ProductCatalogData instancecopyDeep()static ProductCatalogDatadeepCopy(ProductCatalogData template) factory method to create a deep copy of ProductCatalogData@NotNull @Valid ProductDataCurrent (published) data of the Product.@NotNull Booleantrueif thestageddata is different from thecurrentdata.@NotNull Booleantrueif the Product is published.@NotNull @Valid ProductDataStaged (unpublished) data of the Product.static ProductCatalogDataof()factory methodstatic ProductCatalogDataof(ProductCatalogData template) factory method to create a shallow copy ProductCatalogDatavoidsetCurrent(ProductData current) Current (published) data of the Product.voidsetHasStagedChanges(Boolean hasStagedChanges) trueif thestageddata is different from thecurrentdata.voidsetPublished(Boolean published) trueif the Product is published.voidsetStaged(ProductData staged) Staged (unpublished) data of the Product.static com.fasterxml.jackson.core.type.TypeReference<ProductCatalogData>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithProductCatalogData(Function<ProductCatalogData, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductCatalogDataMixin
get
-
Method Details
-
getPublished
trueif the Product is published.- Returns:
- published
-
getCurrent
Current (published) data of the Product.
- Specified by:
getCurrentin interfaceProductCatalogDataMixin- Returns:
- current
-
getStaged
Staged (unpublished) data of the Product.
- Specified by:
getStagedin interfaceProductCatalogDataMixin- Returns:
- staged
-
getHasStagedChanges
trueif thestageddata is different from thecurrentdata.- Returns:
- hasStagedChanges
-
setPublished
trueif the Product is published.- Parameters:
published- value to be set
-
setCurrent
Current (published) data of the Product.
- Parameters:
current- value to be set
-
setStaged
Staged (unpublished) data of the Product.
- Parameters:
staged- value to be set
-
setHasStagedChanges
trueif thestageddata is different from thecurrentdata.- Parameters:
hasStagedChanges- value to be set
-
of
factory method- Returns:
- instance of ProductCatalogData
-
of
factory method to create a shallow copy ProductCatalogData- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductCatalogData copyDeep() -
deepCopy
factory method to create a deep copy of ProductCatalogData- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductCatalogData- Returns:
- builder
-
builder
create builder for ProductCatalogData instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductCatalogData
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
-