Class ProductTailoringDraftBuilder
- All Implemented Interfaces:
Builder<ProductTailoringDraft>
Example to create an instance using the builder pattern
ProductTailoringDraft productTailoringDraft = ProductTailoringDraft.builder()
.store(storeBuilder -> storeBuilder)
.product(productBuilder -> productBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionTailored Variants of the Product.build()
builds ProductTailoringDraft with checking for non-null required valuesbuilds ProductTailoringDraft without checking for non-null required valuesdescription
(LocalizedString description) Tailored description of the Product.Tailored description of the Product.Tailored description of the Product.getKey()
User-defined unique identifier of the ProductTailoring.Tailored description of the Product that is used by search engines.Tailored keywords related to the Product that are used by search engines.Tailored title of the Product that is used by search engines.getName()
Tailored name of the Product.ResourceIdentifier of the Product the ProductTailoring belongs to.Iftrue
, the ProductTailoring is published immediately.getSlug()
User-defined identifier used in a deep-link URL for the ProductTailoring.getStore()
The Store to which the ProductTailoring belongs.Tailored Variants of the Product.User-defined unique identifier of the ProductTailoring.metaDescription
(LocalizedString metaDescription) Tailored description of the Product that is used by search engines.Tailored description of the Product that is used by search engines.metaKeywords
(LocalizedString metaKeywords) Tailored keywords related to the Product that are used by search engines.Tailored keywords related to the Product that are used by search engines.metaTitle
(LocalizedString metaTitle) Tailored title of the Product that is used by search engines.Tailored title of the Product that is used by search engines.name
(LocalizedString name) Tailored name of the Product.Tailored name of the Product.static ProductTailoringDraftBuilder
of()
factory method for an instance of ProductTailoringDraftBuilderstatic ProductTailoringDraftBuilder
of
(ProductTailoringDraft template) create builder for ProductTailoringDraft instanceplusVariants
(ProductVariantTailoringDraft... variants) Tailored Variants of the Product.plusVariants
(Function<ProductVariantTailoringDraftBuilder, ProductVariantTailoringDraftBuilder> builder) Tailored Variants of the Product.product
(ProductResourceIdentifier product) ResourceIdentifier of the Product the ProductTailoring belongs to.ResourceIdentifier of the Product the ProductTailoring belongs to.Iftrue
, the ProductTailoring is published immediately.Tailored Variants of the Product.slug
(LocalizedString slug) User-defined identifier used in a deep-link URL for the ProductTailoring.User-defined identifier used in a deep-link URL for the ProductTailoring.store
(StoreResourceIdentifier store) The Store to which the ProductTailoring belongs.The Store to which the ProductTailoring belongs.variants
(ProductVariantTailoringDraft... variants) Tailored Variants of the Product.variants
(List<ProductVariantTailoringDraft> variants) Tailored Variants of the Product.Tailored description of the Product.Tailored description of the Product that is used by search engines.Tailored keywords related to the Product that are used by search engines.Tailored title of the Product that is used by search engines.Tailored name of the Product.ResourceIdentifier of the Product the ProductTailoring belongs to.User-defined identifier used in a deep-link URL for the ProductTailoring.The Store to which the ProductTailoring belongs.withVariants
(Function<ProductVariantTailoringDraftBuilder, ProductVariantTailoringDraftBuilder> builder) Tailored Variants of the Product.
-
Constructor Details
-
ProductTailoringDraftBuilder
public ProductTailoringDraftBuilder()
-
-
Method Details
-
key
User-defined unique identifier of the ProductTailoring.
- Parameters:
key
- value to be set- Returns:
- Builder
-
store
public ProductTailoringDraftBuilder store(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifierBuilder> builder) The Store to which the ProductTailoring belongs.
- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
withStore
public ProductTailoringDraftBuilder withStore(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifier> builder) The Store to which the ProductTailoring belongs.
- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
store
The Store to which the ProductTailoring belongs.
- Parameters:
store
- value to be set- Returns:
- Builder
-
product
public ProductTailoringDraftBuilder product(Function<ProductResourceIdentifierBuilder, ProductResourceIdentifierBuilder> builder) ResourceIdentifier of the Product the ProductTailoring belongs to.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
withProduct
public ProductTailoringDraftBuilder withProduct(Function<ProductResourceIdentifierBuilder, ProductResourceIdentifier> builder) ResourceIdentifier of the Product the ProductTailoring belongs to.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
product
ResourceIdentifier of the Product the ProductTailoring belongs to.
- Parameters:
product
- value to be set- Returns:
- Builder
-
name
public ProductTailoringDraftBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Tailored name of the Product.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
public ProductTailoringDraftBuilder withName(Function<LocalizedStringBuilder, LocalizedString> builder) Tailored name of the Product.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
name
Tailored name of the Product.
- Parameters:
name
- value to be set- Returns:
- Builder
-
description
public ProductTailoringDraftBuilder description(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Tailored description of the Product.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
withDescription
public ProductTailoringDraftBuilder withDescription(Function<LocalizedStringBuilder, LocalizedString> builder) Tailored description of the Product.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
description
Tailored description of the Product.
- Parameters:
description
- value to be set- Returns:
- Builder
-
metaTitle
public ProductTailoringDraftBuilder metaTitle(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Tailored title of the Product that is used by search engines.
- Parameters:
builder
- function to build the metaTitle value- Returns:
- Builder
-
withMetaTitle
public ProductTailoringDraftBuilder withMetaTitle(Function<LocalizedStringBuilder, LocalizedString> builder) Tailored title of the Product that is used by search engines.
- Parameters:
builder
- function to build the metaTitle value- Returns:
- Builder
-
metaTitle
Tailored title of the Product that is used by search engines.
- Parameters:
metaTitle
- value to be set- Returns:
- Builder
-
metaDescription
public ProductTailoringDraftBuilder metaDescription(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Tailored description of the Product that is used by search engines.
- Parameters:
builder
- function to build the metaDescription value- Returns:
- Builder
-
withMetaDescription
public ProductTailoringDraftBuilder withMetaDescription(Function<LocalizedStringBuilder, LocalizedString> builder) Tailored description of the Product that is used by search engines.
- Parameters:
builder
- function to build the metaDescription value- Returns:
- Builder
-
metaDescription
Tailored description of the Product that is used by search engines.
- Parameters:
metaDescription
- value to be set- Returns:
- Builder
-
metaKeywords
public ProductTailoringDraftBuilder metaKeywords(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Tailored keywords related to the Product that are used by search engines.
- Parameters:
builder
- function to build the metaKeywords value- Returns:
- Builder
-
withMetaKeywords
public ProductTailoringDraftBuilder withMetaKeywords(Function<LocalizedStringBuilder, LocalizedString> builder) Tailored keywords related to the Product that are used by search engines.
- Parameters:
builder
- function to build the metaKeywords value- Returns:
- Builder
-
metaKeywords
Tailored keywords related to the Product that are used by search engines.
- Parameters:
metaKeywords
- value to be set- Returns:
- Builder
-
slug
public ProductTailoringDraftBuilder slug(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) User-defined identifier used in a deep-link URL for the ProductTailoring. Matches the pattern
[a-zA-Z0-9_\\-]{2,256}
.- Parameters:
builder
- function to build the slug value- Returns:
- Builder
-
withSlug
public ProductTailoringDraftBuilder withSlug(Function<LocalizedStringBuilder, LocalizedString> builder) User-defined identifier used in a deep-link URL for the ProductTailoring. Matches the pattern
[a-zA-Z0-9_\\-]{2,256}
.- Parameters:
builder
- function to build the slug value- Returns:
- Builder
-
slug
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- Returns:
- Builder
-
publish
If
true
, the ProductTailoring is published immediately.- Parameters:
publish
- value to be set- Returns:
- Builder
-
variants
Tailored Variants of the Product.
- Parameters:
variants
- value to be set- Returns:
- Builder
-
variants
Tailored Variants of the Product.
- Parameters:
variants
- value to be set- Returns:
- Builder
-
plusVariants
public ProductTailoringDraftBuilder plusVariants(@Nullable ProductVariantTailoringDraft... variants) Tailored Variants of the Product.
- Parameters:
variants
- value to be set- Returns:
- Builder
-
plusVariants
public ProductTailoringDraftBuilder plusVariants(Function<ProductVariantTailoringDraftBuilder, ProductVariantTailoringDraftBuilder> builder) Tailored Variants of the Product.
- Parameters:
builder
- function to build the variants value- Returns:
- Builder
-
withVariants
public ProductTailoringDraftBuilder withVariants(Function<ProductVariantTailoringDraftBuilder, ProductVariantTailoringDraftBuilder> builder) Tailored Variants of the Product.
- Parameters:
builder
- function to build the variants value- Returns:
- Builder
-
addVariants
public ProductTailoringDraftBuilder addVariants(Function<ProductVariantTailoringDraftBuilder, ProductVariantTailoringDraft> builder) Tailored Variants of the Product.
- Parameters:
builder
- function to build the variants value- Returns:
- Builder
-
setVariants
public ProductTailoringDraftBuilder setVariants(Function<ProductVariantTailoringDraftBuilder, ProductVariantTailoringDraft> builder) Tailored Variants of the Product.
- Parameters:
builder
- function to build the variants value- Returns:
- Builder
-
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
If
true
, the ProductTailoring is published immediately.- Returns:
- publish
-
getVariants
Tailored Variants of the Product.
- Returns:
- variants
-
build
builds ProductTailoringDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringDraft>
- Returns:
- ProductTailoringDraft
-
buildUnchecked
builds ProductTailoringDraft without checking for non-null required values- Returns:
- ProductTailoringDraft
-
of
factory method for an instance of ProductTailoringDraftBuilder- Returns:
- builder
-
of
create builder for ProductTailoringDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-