Interface ProductTailoringDraft
- All Superinterfaces:
Draft<ProductTailoringDraft>
Contains the information to be tailored for a Product.
Example to create an instance using the builder pattern
ProductTailoringDraft productTailoringDraft = ProductTailoringDraft.builder()
.store(storeBuilder -> storeBuilder)
.product(productBuilder -> productBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProductTailoringDraftBuilderbuilder()builder factory method for ProductTailoringDraftstatic ProductTailoringDraftBuilderbuilder(ProductTailoringDraft template) create builder for ProductTailoringDraft instancecopyDeep()static ProductTailoringDraftdeepCopy(ProductTailoringDraft template) factory method to create a deep copy of ProductTailoringDraft@Valid List<ProductTailoringAttribute>Attributes of the tailored Product.@Valid LocalizedStringTailored description of the Product.getKey()User-defined unique identifier of the ProductTailoring.@Valid LocalizedStringTailored description of the Product that is used by search engines.@Valid LocalizedStringTailored keywords related to the Product that are used by search engines.@Valid LocalizedStringTailored title of the Product that is used by search engines.@Valid LocalizedStringgetName()Tailored name of the Product.@NotNull @Valid ProductResourceIdentifierResourceIdentifier of the Product the ProductTailoring belongs to.Set totrueto publish the ProductTailoring immediately.@Valid LocalizedStringgetSlug()User-defined identifier used in a deep-link URL for the ProductTailoring.@NotNull @Valid StoreResourceIdentifiergetStore()The Store to which the ProductTailoring belongs.@Valid List<ProductVariantTailoringDraft>Tailored Variants of the Product.static ProductTailoringDraftof()factory methodstatic ProductTailoringDraftof(ProductTailoringDraft template) factory method to create a shallow copy ProductTailoringDraftvoidsetAttributes(ProductTailoringAttribute... attributes) Attributes of the tailored Product.voidsetAttributes(List<ProductTailoringAttribute> attributes) Attributes of the tailored Product.voidsetDescription(LocalizedString description) Tailored description of the Product.voidUser-defined unique identifier of the ProductTailoring.voidsetMetaDescription(LocalizedString metaDescription) Tailored description of the Product that is used by search engines.voidsetMetaKeywords(LocalizedString metaKeywords) Tailored keywords related to the Product that are used by search engines.voidsetMetaTitle(LocalizedString metaTitle) Tailored title of the Product that is used by search engines.voidsetName(LocalizedString name) Tailored name of the Product.voidsetProduct(ProductResourceIdentifier product) ResourceIdentifier of the Product the ProductTailoring belongs to.voidsetPublish(Boolean publish) Set totrueto publish the ProductTailoring immediately.voidsetSlug(LocalizedString slug) User-defined identifier used in a deep-link URL for the ProductTailoring.voidsetStore(StoreResourceIdentifier store) The Store to which the ProductTailoring belongs.voidsetVariants(ProductVariantTailoringDraft... variants) Tailored Variants of the Product.voidsetVariants(List<ProductVariantTailoringDraft> variants) Tailored Variants of the Product.static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getKey
String getKey()User-defined unique identifier of the ProductTailoring.
- Returns:
- key
-
getStore
The Store to which the ProductTailoring belongs.
- Returns:
- store
-
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 by search engines.
- 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()Set to
trueto publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.- Returns:
- publish
-
getVariants
Tailored Variants of the Product.
- Returns:
- variants
-
getAttributes
Attributes of the tailored Product. If provided, these Attributes are selectively merged into the
attributesof the corresponding Product. If the Product contains an Attribute with the samename, then itsvalueis overwritten. Otherwise, the Attribute and itsvalueare added to the Product.- Returns:
- attributes
-
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
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 by search engines.
- 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
Set to
trueto publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.- 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
-
setAttributes
Attributes of the tailored Product. If provided, these Attributes are selectively merged into the
attributesof the corresponding Product. If the Product contains an Attribute with the samename, then itsvalueis overwritten. Otherwise, the Attribute and itsvalueare added to the Product.- Parameters:
attributes- values to be set
-
setAttributes
Attributes of the tailored Product. If provided, these Attributes are selectively merged into the
attributesof the corresponding Product. If the Product contains an Attribute with the samename, then itsvalueis overwritten. Otherwise, the Attribute and itsvalueare added to the Product.- Parameters:
attributes- values to be set
-
of
factory method- Returns:
- instance of ProductTailoringDraft
-
of
factory method to create a shallow copy ProductTailoringDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductTailoringDraft copyDeep() -
deepCopy
factory method to create a deep copy of ProductTailoringDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTailoringDraft- Returns:
- builder
-
builder
create builder for ProductTailoringDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductTailoringDraft
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
-