Interface ProductTailoringInStoreDraft
- All Superinterfaces:
Draft<ProductTailoringInStoreDraft>
Contains all the tailored data of a Product for a specific Store.
Example to create an instance using the builder pattern
ProductTailoringInStoreDraft productTailoringInStoreDraft = ProductTailoringInStoreDraft.builder()
.product(productBuilder -> productBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTailoringInStoreDraftbuilder
(ProductTailoringInStoreDraft template) create builder for ProductTailoringInStoreDraft instancestatic ProductTailoringInStoreDraft
deepCopy
(ProductTailoringInStoreDraft template) factory method to create a deep copy of ProductTailoringInStoreDraft@Valid LocalizedString
Tailored description of the Product.getKey()
User-defined unique identifier of the ProductTailoring.@Valid LocalizedString
Tailored description of the Product that is used in search engine.@Valid LocalizedString
Tailored keywords related to the Product that are used by search engines.@Valid LocalizedString
Tailored title of the Product that is used by search engines.@Valid LocalizedString
getName()
Tailored name of the Product.@NotNull @Valid ProductResourceIdentifier
ResourceIdentifier of the Product the ProductTailoring belongs to.Iftrue
, the ProductTailoring is published immediately.@Valid LocalizedString
getSlug()
User-defined identifier used in a deep-link URL for the ProductTailoring.@Valid List<ProductVariantTailoringDraft>
Tailored Variants of the Product.static ProductTailoringInStoreDraft
of()
factory methodstatic ProductTailoringInStoreDraft
of
(ProductTailoringInStoreDraft template) factory method to create a shallow copy ProductTailoringInStoreDraftvoid
setDescription
(LocalizedString description) Tailored description of the Product.void
User-defined unique identifier of the ProductTailoring.void
setMetaDescription
(LocalizedString metaDescription) Tailored description of the Product that is used in search engine.void
setMetaKeywords
(LocalizedString metaKeywords) Tailored keywords related to the Product that are used by search engines.void
setMetaTitle
(LocalizedString metaTitle) Tailored title of the Product that is used by search engines.void
setName
(LocalizedString name) Tailored name of the Product.void
setProduct
(ProductResourceIdentifier product) ResourceIdentifier of the Product the ProductTailoring belongs to.void
setPublish
(Boolean publish) Iftrue
, the ProductTailoring is published immediately.void
setSlug
(LocalizedString slug) User-defined identifier used in a deep-link URL for the ProductTailoring.void
setVariants
(ProductVariantTailoringDraft... variants) Tailored Variants of the Product.void
setVariants
(List<ProductVariantTailoringDraft> variants) Tailored Variants of the Product.static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringInStoreDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getKey
String getKey()User-defined unique identifier of the ProductTailoring.
- Returns:
- key
-
getProduct
ResourceIdentifier of the Product the ProductTailoring belongs to.
- Returns:
- product
-
getName
Tailored name of the Product.
- Returns:
- name
-
getDescription
Tailored description of the Product.
- Returns:
- description
-
getMetaTitle
Tailored title of the Product that is used by search engines.
- Returns:
- metaTitle
-
getMetaDescription
Tailored description of the Product that is used in search engine.
- Returns:
- metaDescription
-
getMetaKeywords
Tailored keywords related to the Product that are used by search engines.
- Returns:
- metaKeywords
-
getSlug
User-defined identifier used in a deep-link URL for the ProductTailoring. Matches the pattern
[a-zA-Z0-9_\\-]{2,256}
.- Returns:
- slug
-
getPublish
Boolean getPublish()If
true
, the ProductTailoring is published immediately.- Returns:
- publish
-
getVariants
Tailored Variants of the Product.
- Returns:
- variants
-
setKey
User-defined unique identifier of the ProductTailoring.
- Parameters:
key
- value to be set
-
setProduct
ResourceIdentifier of the Product the ProductTailoring belongs to.
- Parameters:
product
- value to be set
-
setName
Tailored name of the Product.
- Parameters:
name
- value to be set
-
setDescription
Tailored description of the Product.
- Parameters:
description
- value to be set
-
setMetaTitle
Tailored title of the Product that is used by search engines.
- Parameters:
metaTitle
- value to be set
-
setMetaDescription
Tailored description of the Product that is used in search engine.
- Parameters:
metaDescription
- value to be set
-
setMetaKeywords
Tailored keywords related to the Product that are used by search engines.
- Parameters:
metaKeywords
- value to be set
-
setSlug
User-defined identifier used in a deep-link URL for the ProductTailoring. Matches the pattern
[a-zA-Z0-9_\\-]{2,256}
.- Parameters:
slug
- value to be set
-
setPublish
If
true
, the ProductTailoring is published immediately.- Parameters:
publish
- value to be set
-
setVariants
Tailored Variants of the Product.
- Parameters:
variants
- values to be set
-
setVariants
Tailored Variants of the Product.
- Parameters:
variants
- values to be set
-
of
factory method- Returns:
- instance of ProductTailoringInStoreDraft
-
of
factory method to create a shallow copy ProductTailoringInStoreDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductTailoringInStoreDraft deepCopy(@Nullable ProductTailoringInStoreDraft template) factory method to create a deep copy of ProductTailoringInStoreDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTailoringInStoreDraft- Returns:
- builder
-
builder
create builder for ProductTailoringInStoreDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductTailoringInStoreDraft
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
-