Class ProductTailoringInStoreDraftBuilder
- All Implemented Interfaces:
Builder<ProductTailoringInStoreDraft>
Example to create an instance using the builder pattern
ProductTailoringInStoreDraft productTailoringInStoreDraft = ProductTailoringInStoreDraft.builder()
.product(productBuilder -> productBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionTailored Variants of the Product.build()
builds ProductTailoringInStoreDraft with checking for non-null required valuesbuilds ProductTailoringInStoreDraft 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 in search engine.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.Tailored Variants of the Product.User-defined unique identifier of the ProductTailoring.metaDescription
(LocalizedString metaDescription) Tailored description of the Product that is used in search engine.Tailored description of the Product that is used in search engine.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.of()
factory method for an instance of ProductTailoringInStoreDraftBuilderof
(ProductTailoringInStoreDraft template) create builder for ProductTailoringInStoreDraft 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.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 in search engine.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.withVariants
(Function<ProductVariantTailoringDraftBuilder, ProductVariantTailoringDraftBuilder> builder) Tailored Variants of the Product.
-
Constructor Details
-
ProductTailoringInStoreDraftBuilder
public ProductTailoringInStoreDraftBuilder()
-
-
Method Details
-
key
User-defined unique identifier of the ProductTailoring.
- Parameters:
key
- value to be set- Returns:
- Builder
-
product
public ProductTailoringInStoreDraftBuilder 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 ProductTailoringInStoreDraftBuilder 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 ProductTailoringInStoreDraftBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Tailored name of the Product.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
public ProductTailoringInStoreDraftBuilder 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 ProductTailoringInStoreDraftBuilder description(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Tailored description of the Product.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
withDescription
public ProductTailoringInStoreDraftBuilder 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 ProductTailoringInStoreDraftBuilder 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 ProductTailoringInStoreDraftBuilder 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 ProductTailoringInStoreDraftBuilder metaDescription(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Tailored description of the Product that is used in search engine.
- Parameters:
builder
- function to build the metaDescription value- Returns:
- Builder
-
withMetaDescription
public ProductTailoringInStoreDraftBuilder withMetaDescription(Function<LocalizedStringBuilder, LocalizedString> builder) Tailored description of the Product that is used in search engine.
- Parameters:
builder
- function to build the metaDescription value- Returns:
- Builder
-
metaDescription
public ProductTailoringInStoreDraftBuilder metaDescription(@Nullable LocalizedString metaDescription) Tailored description of the Product that is used in search engine.
- Parameters:
metaDescription
- value to be set- Returns:
- Builder
-
metaKeywords
public ProductTailoringInStoreDraftBuilder 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 ProductTailoringInStoreDraftBuilder 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 ProductTailoringInStoreDraftBuilder 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 ProductTailoringInStoreDraftBuilder 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
public ProductTailoringInStoreDraftBuilder variants(@Nullable ProductVariantTailoringDraft... variants) Tailored Variants of the Product.
- Parameters:
variants
- value to be set- Returns:
- Builder
-
variants
public ProductTailoringInStoreDraftBuilder variants(@Nullable List<ProductVariantTailoringDraft> variants) Tailored Variants of the Product.
- Parameters:
variants
- value to be set- Returns:
- Builder
-
plusVariants
public ProductTailoringInStoreDraftBuilder plusVariants(@Nullable ProductVariantTailoringDraft... variants) Tailored Variants of the Product.
- Parameters:
variants
- value to be set- Returns:
- Builder
-
plusVariants
public ProductTailoringInStoreDraftBuilder plusVariants(Function<ProductVariantTailoringDraftBuilder, ProductVariantTailoringDraftBuilder> builder) Tailored Variants of the Product.
- Parameters:
builder
- function to build the variants value- Returns:
- Builder
-
withVariants
public ProductTailoringInStoreDraftBuilder withVariants(Function<ProductVariantTailoringDraftBuilder, ProductVariantTailoringDraftBuilder> builder) Tailored Variants of the Product.
- Parameters:
builder
- function to build the variants value- Returns:
- Builder
-
addVariants
public ProductTailoringInStoreDraftBuilder addVariants(Function<ProductVariantTailoringDraftBuilder, ProductVariantTailoringDraft> builder) Tailored Variants of the Product.
- Parameters:
builder
- function to build the variants value- Returns:
- Builder
-
setVariants
public ProductTailoringInStoreDraftBuilder 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
-
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
If
true
, the ProductTailoring is published immediately.- Returns:
- publish
-
getVariants
Tailored Variants of the Product.
- Returns:
- variants
-
build
builds ProductTailoringInStoreDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringInStoreDraft>
- Returns:
- ProductTailoringInStoreDraft
-
buildUnchecked
builds ProductTailoringInStoreDraft without checking for non-null required values- Returns:
- ProductTailoringInStoreDraft
-
of
factory method for an instance of ProductTailoringInStoreDraftBuilder- Returns:
- builder
-
of
create builder for ProductTailoringInStoreDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-