Class ProductTailoringDataBuilder
- All Implemented Interfaces:
Builder<ProductTailoringData>
Example to create an instance using the builder pattern
ProductTailoringData productTailoringData = ProductTailoringData.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionTailored Variants of the Product.build()
builds ProductTailoringData with checking for non-null required valuesbuilds ProductTailoringData without checking for non-null required valuesdescription
(LocalizedString description) Tailored description of the Product.Tailored description of the Product.Tailored description of the Product.Tailored description of the Product as displayed in search engine results.Tailored keywords related to the Product that are used by search engines.Tailored title of the Product as displayed in search engine results.getName()
Tailored name of the Product.getSlug()
User-defined identifier used in a deep-link URL for the ProductTailoring.Tailored Variants of the Product.metaDescription
(LocalizedString metaDescription) Tailored description of the Product as displayed in search engine results.Tailored description of the Product as displayed in search engine results.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 as displayed in search engine results.Tailored title of the Product as displayed in search engine results.name
(LocalizedString name) Tailored name of the Product.Tailored name of the Product.static ProductTailoringDataBuilder
of()
factory method for an instance of ProductTailoringDataBuilderstatic ProductTailoringDataBuilder
of
(ProductTailoringData template) create builder for ProductTailoringData instanceplusVariants
(ProductVariantTailoring... variants) Tailored Variants of the Product.Tailored Variants of the Product.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
(ProductVariantTailoring... variants) Tailored Variants of the Product.variants
(List<ProductVariantTailoring> variants) Tailored Variants of the Product.Tailored description of the Product.Tailored description of the Product as displayed in search engine results.Tailored keywords related to the Product that are used by search engines.Tailored title of the Product as displayed in search engine results.Tailored name of the Product.User-defined identifier used in a deep-link URL for the ProductTailoring.Tailored Variants of the Product.
-
Constructor Details
-
ProductTailoringDataBuilder
public ProductTailoringDataBuilder()
-
-
Method Details
-
name
public ProductTailoringDataBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Tailored name of the Product.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
public ProductTailoringDataBuilder 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 ProductTailoringDataBuilder description(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Tailored description of the Product.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
withDescription
public ProductTailoringDataBuilder 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 ProductTailoringDataBuilder metaTitle(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Tailored title of the Product as displayed in search engine results.
- Parameters:
builder
- function to build the metaTitle value- Returns:
- Builder
-
withMetaTitle
public ProductTailoringDataBuilder withMetaTitle(Function<LocalizedStringBuilder, LocalizedString> builder) Tailored title of the Product as displayed in search engine results.
- Parameters:
builder
- function to build the metaTitle value- Returns:
- Builder
-
metaTitle
Tailored title of the Product as displayed in search engine results.
- Parameters:
metaTitle
- value to be set- Returns:
- Builder
-
metaDescription
public ProductTailoringDataBuilder metaDescription(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Tailored description of the Product as displayed in search engine results.
- Parameters:
builder
- function to build the metaDescription value- Returns:
- Builder
-
withMetaDescription
public ProductTailoringDataBuilder withMetaDescription(Function<LocalizedStringBuilder, LocalizedString> builder) Tailored description of the Product as displayed in search engine results.
- Parameters:
builder
- function to build the metaDescription value- Returns:
- Builder
-
metaDescription
Tailored description of the Product as displayed in search engine results.
- Parameters:
metaDescription
- value to be set- Returns:
- Builder
-
metaKeywords
public ProductTailoringDataBuilder 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 ProductTailoringDataBuilder 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 ProductTailoringDataBuilder 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 ProductTailoringDataBuilder 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
-
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
Tailored Variants of the Product.
- Parameters:
variants
- value to be set- Returns:
- Builder
-
plusVariants
public ProductTailoringDataBuilder plusVariants(Function<ProductVariantTailoringBuilder, ProductVariantTailoringBuilder> builder) Tailored Variants of the Product.
- Parameters:
builder
- function to build the variants value- Returns:
- Builder
-
withVariants
public ProductTailoringDataBuilder withVariants(Function<ProductVariantTailoringBuilder, ProductVariantTailoringBuilder> builder) Tailored Variants of the Product.
- Parameters:
builder
- function to build the variants value- Returns:
- Builder
-
addVariants
public ProductTailoringDataBuilder addVariants(Function<ProductVariantTailoringBuilder, ProductVariantTailoring> builder) Tailored Variants of the Product.
- Parameters:
builder
- function to build the variants value- Returns:
- Builder
-
setVariants
public ProductTailoringDataBuilder setVariants(Function<ProductVariantTailoringBuilder, ProductVariantTailoring> builder) Tailored Variants of the Product.
- Parameters:
builder
- function to build the variants value- Returns:
- Builder
-
getName
Tailored name of the Product.
- Returns:
- name
-
getDescription
Tailored description of the Product.
- Returns:
- description
-
getMetaTitle
Tailored title of the Product as displayed in search engine results.
- Returns:
- metaTitle
-
getMetaDescription
Tailored description of the Product as displayed in search engine results.
- 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
-
getVariants
Tailored Variants of the Product.
- Returns:
- variants
-
build
builds ProductTailoringData with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringData>
- Returns:
- ProductTailoringData
-
buildUnchecked
builds ProductTailoringData without checking for non-null required values- Returns:
- ProductTailoringData
-
of
factory method for an instance of ProductTailoringDataBuilder- Returns:
- builder
-
of
create builder for ProductTailoringData instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-