Interface ProductTailoring
- All Superinterfaces:
BaseResource
A single ProductTailoring representation contains the current and the staged representation of its product information tailored per Store.
Example to create an instance using the builder pattern
ProductTailoring productTailoring = ProductTailoring.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.store(storeBuilder -> storeBuilder)
.product(productBuilder -> productBuilder)
.published(true)
.current(currentBuilder -> currentBuilder)
.staged(stagedBuilder -> stagedBuilder)
.hasStagedChanges(true)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProductTailoringBuilderbuilder()builder factory method for ProductTailoringstatic ProductTailoringBuilderbuilder(ProductTailoring template) create builder for ProductTailoring instancecopyDeep()static ProductTailoringdeepCopy(ProductTailoring template) factory method to create a deep copy of ProductTailoring@NotNull ZonedDateTimeDate and time (UTC) the ProductTailoring was initially created.@Valid CreatedByIDs and references that created the ProductTailoring.@NotNull @Valid ProductTailoringDataCurrent (published) data of the ProductTailoring.@NotNull Booleantrueif thestageddata is different from thecurrentdata.@NotNull StringgetId()Unique identifier of the ProductTailoring.getKey()User-defined unique identifier of the ProductTailoring.@NotNull ZonedDateTimeDate and time (UTC) the ProductTailoring was last updated.@Valid LastModifiedByIDs and references that last modified the ProductTailoring.@NotNull @Valid ProductReferenceReference to the Product the ProductTailoring belongs to.@NotNull BooleanIftrue, the tailored information contained in thecurrentProductTailoringData is provided when retrieving the ProductProjection in Store.@NotNull @Valid ProductTailoringDataStaged (unpublished) data of the ProductTailoring.@NotNull @Valid StoreKeyReferencegetStore()The Store to which the ProductTailoring belongs.@NotNull LongCurrent version of the ProductTailoring.@Valid List<WarningObject>Warnings about processing of a request.static ProductTailoringof()factory methodstatic ProductTailoringof(ProductTailoring template) factory method to create a shallow copy ProductTailoringvoidsetCreatedAt(ZonedDateTime createdAt) Date and time (UTC) the ProductTailoring was initially created.voidsetCreatedBy(CreatedBy createdBy) IDs and references that created the ProductTailoring.voidsetCurrent(ProductTailoringData current) Current (published) data of the ProductTailoring.voidsetHasStagedChanges(Boolean hasStagedChanges) trueif thestageddata is different from thecurrentdata.voidUnique identifier of the ProductTailoring.voidUser-defined unique identifier of the ProductTailoring.voidsetLastModifiedAt(ZonedDateTime lastModifiedAt) Date and time (UTC) the ProductTailoring was last updated.voidsetLastModifiedBy(LastModifiedBy lastModifiedBy) IDs and references that last modified the ProductTailoring.voidsetProduct(ProductReference product) Reference to the Product the ProductTailoring belongs to.voidsetPublished(Boolean published) Iftrue, the tailored information contained in thecurrentProductTailoringData is provided when retrieving the ProductProjection in Store.voidsetStaged(ProductTailoringData staged) Staged (unpublished) data of the ProductTailoring.voidsetStore(StoreKeyReference store) The Store to which the ProductTailoring belongs.voidsetVersion(Long version) Current version of the ProductTailoring.voidsetWarnings(WarningObject... warnings) Warnings about processing of a request.voidsetWarnings(List<WarningObject> warnings) Warnings about processing of a request.static com.fasterxml.jackson.core.type.TypeReference<ProductTailoring>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithProductTailoring(Function<ProductTailoring, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
-
Method Details
-
getId
Unique identifier of the ProductTailoring.
- Specified by:
getIdin interfaceBaseResource- Returns:
- id
-
getVersion
Current version of the ProductTailoring.
- Specified by:
getVersionin interfaceBaseResource- Returns:
- version
-
getCreatedAt
Date and time (UTC) the ProductTailoring was initially created.
- Specified by:
getCreatedAtin interfaceBaseResource- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the ProductTailoring was last updated.
- Specified by:
getLastModifiedAtin interfaceBaseResource- Returns:
- lastModifiedAt
-
getLastModifiedBy
IDs and references that last modified the ProductTailoring.
- Returns:
- lastModifiedBy
-
getCreatedBy
IDs and references that created the ProductTailoring.
- Returns:
- createdBy
-
getKey
String getKey()User-defined unique identifier of the ProductTailoring.
- Returns:
- key
-
getStore
The Store to which the ProductTailoring belongs.
- Returns:
- store
-
getProduct
Reference to the Product the ProductTailoring belongs to.
- Returns:
- product
-
getPublished
If
true, the tailored information contained in thecurrentProductTailoringData is provided when retrieving the ProductProjection in Store. For information not part of the ProductTailoringData, the original information contained in the ProductData is provided. Iffalse, only the original information contained in the ProductData is provided.- Returns:
- published
-
getCurrent
Current (published) data of the ProductTailoring.
- Returns:
- current
-
getStaged
Staged (unpublished) data of the ProductTailoring.
- Returns:
- staged
-
getHasStagedChanges
trueif thestageddata is different from thecurrentdata.- Returns:
- hasStagedChanges
-
getWarnings
Warnings about processing of a request. Appears in response to requests with response status code
202 Accepted.- Returns:
- warnings
-
setId
Unique identifier of the ProductTailoring.
- Specified by:
setIdin interfaceBaseResource- Parameters:
id- value to be set
-
setVersion
Current version of the ProductTailoring.
- Specified by:
setVersionin interfaceBaseResource- Parameters:
version- value to be set
-
setCreatedAt
Date and time (UTC) the ProductTailoring was initially created.
- Specified by:
setCreatedAtin interfaceBaseResource- Parameters:
createdAt- value to be set
-
setLastModifiedAt
Date and time (UTC) the ProductTailoring was last updated.
- Specified by:
setLastModifiedAtin interfaceBaseResource- Parameters:
lastModifiedAt- value to be set
-
setLastModifiedBy
IDs and references that last modified the ProductTailoring.
- Parameters:
lastModifiedBy- value to be set
-
setCreatedBy
IDs and references that created the ProductTailoring.
- Parameters:
createdBy- value to be set
-
setKey
User-defined unique identifier of the ProductTailoring.
- Parameters:
key- value to be set
-
setStore
The Store to which the ProductTailoring belongs.
- Parameters:
store- value to be set
-
setProduct
Reference to the Product the ProductTailoring belongs to.
- Parameters:
product- value to be set
-
setPublished
If
true, the tailored information contained in thecurrentProductTailoringData is provided when retrieving the ProductProjection in Store. For information not part of the ProductTailoringData, the original information contained in the ProductData is provided. Iffalse, only the original information contained in the ProductData is provided.- Parameters:
published- value to be set
-
setCurrent
Current (published) data of the ProductTailoring.
- Parameters:
current- value to be set
-
setStaged
Staged (unpublished) data of the ProductTailoring.
- Parameters:
staged- value to be set
-
setHasStagedChanges
trueif thestageddata is different from thecurrentdata.- Parameters:
hasStagedChanges- value to be set
-
setWarnings
Warnings about processing of a request. Appears in response to requests with response status code
202 Accepted.- Parameters:
warnings- values to be set
-
setWarnings
Warnings about processing of a request. Appears in response to requests with response status code
202 Accepted.- Parameters:
warnings- values to be set
-
of
factory method- Returns:
- instance of ProductTailoring
-
of
factory method to create a shallow copy ProductTailoring- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductTailoring copyDeep()- Specified by:
copyDeepin interfaceBaseResource
-
deepCopy
factory method to create a deep copy of ProductTailoring- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTailoring- Returns:
- builder
-
builder
create builder for ProductTailoring instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductTailoring
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
-