Class ProductTailoringCreatedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductTailoringCreatedMessagePayload>
Example to create an instance using the builder pattern
ProductTailoringCreatedMessagePayload productTailoringCreatedMessagePayload = ProductTailoringCreatedMessagePayload.builder()
.store(storeBuilder -> storeBuilder)
.product(productBuilder -> productBuilder)
.published(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe variants of the Product Tailoring at the time of creation.build()
builds ProductTailoringCreatedMessagePayload with checking for non-null required valuesbuilds ProductTailoringCreatedMessagePayload without checking for non-null required valuesdescription
(LocalizedString description) The description of the Product Tailoring at the time of creation.The description of the Product Tailoring at the time of creation.The description of the Product Tailoring at the time of creation.getKey()
User-defined unique identifier of the Product Tailoring.The metaDescription of the Product Tailoring at the time of creation.The metaKeywords of the Product Tailoring at the time of creation.The metaTitle of the Product Tailoring at the time of creation.getName()
The name of the Product Tailoring at the time of creation.Reference to the Product the Product Tailoring belongs to.User-defined unique identifier of the Product this Product Tailoring belongs to.true
if the ProductTailoring is published.getSlug()
The slug of the Product Tailoring at the time of creation.getStore()
The Store to which the Product Tailoring belongs.The variants of the Product Tailoring at the time of creation.User-defined unique identifier of the Product Tailoring.metaDescription
(LocalizedString metaDescription) The metaDescription of the Product Tailoring at the time of creation.The metaDescription of the Product Tailoring at the time of creation.metaKeywords
(LocalizedString metaKeywords) The metaKeywords of the Product Tailoring at the time of creation.The metaKeywords of the Product Tailoring at the time of creation.metaTitle
(LocalizedString metaTitle) The metaTitle of the Product Tailoring at the time of creation.The metaTitle of the Product Tailoring at the time of creation.name
(LocalizedString name) The name of the Product Tailoring at the time of creation.The name of the Product Tailoring at the time of creation.of()
factory method for an instance of ProductTailoringCreatedMessagePayloadBuilderof
(ProductTailoringCreatedMessagePayload template) create builder for ProductTailoringCreatedMessagePayload instanceplusVariants
(ProductVariantTailoring... variants) The variants of the Product Tailoring at the time of creation.The variants of the Product Tailoring at the time of creation.product
(ProductReference product) Reference to the Product the Product Tailoring belongs to.Reference to the Product the Product Tailoring belongs to.productKey
(String productKey) User-defined unique identifier of the Product this Product Tailoring belongs to.true
if the ProductTailoring is published.The variants of the Product Tailoring at the time of creation.slug
(LocalizedString slug) The slug of the Product Tailoring at the time of creation.The slug of the Product Tailoring at the time of creation.store
(StoreKeyReference store) The Store to which the Product Tailoring belongs.The Store to which the Product Tailoring belongs.variants
(ProductVariantTailoring... variants) The variants of the Product Tailoring at the time of creation.variants
(List<ProductVariantTailoring> variants) The variants of the Product Tailoring at the time of creation.The description of the Product Tailoring at the time of creation.The metaDescription of the Product Tailoring at the time of creation.The metaKeywords of the Product Tailoring at the time of creation.The metaTitle of the Product Tailoring at the time of creation.The name of the Product Tailoring at the time of creation.Reference to the Product the Product Tailoring belongs to.The slug of the Product Tailoring at the time of creation.The Store to which the Product Tailoring belongs.The variants of the Product Tailoring at the time of creation.
-
Constructor Details
-
ProductTailoringCreatedMessagePayloadBuilder
public ProductTailoringCreatedMessagePayloadBuilder()
-
-
Method Details
-
key
User-defined unique identifier of the Product Tailoring.
- Parameters:
key
- value to be set- Returns:
- Builder
-
store
public ProductTailoringCreatedMessagePayloadBuilder store(Function<StoreKeyReferenceBuilder, StoreKeyReferenceBuilder> builder) The Store to which the Product Tailoring belongs.
- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
withStore
public ProductTailoringCreatedMessagePayloadBuilder withStore(Function<StoreKeyReferenceBuilder, StoreKeyReference> builder) The Store to which the Product Tailoring belongs.
- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
store
The Store to which the Product Tailoring belongs.
- Parameters:
store
- value to be set- Returns:
- Builder
-
productKey
User-defined unique identifier of the Product this Product Tailoring belongs to.
- Parameters:
productKey
- value to be set- Returns:
- Builder
-
product
public ProductTailoringCreatedMessagePayloadBuilder product(Function<ProductReferenceBuilder, ProductReferenceBuilder> builder) Reference to the Product the Product Tailoring belongs to.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
withProduct
public ProductTailoringCreatedMessagePayloadBuilder withProduct(Function<ProductReferenceBuilder, ProductReference> builder) Reference to the Product the Product Tailoring belongs to.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
product
Reference to the Product the Product Tailoring belongs to.
- Parameters:
product
- value to be set- Returns:
- Builder
-
description
public ProductTailoringCreatedMessagePayloadBuilder description(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) The description of the Product Tailoring at the time of creation.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
withDescription
public ProductTailoringCreatedMessagePayloadBuilder withDescription(Function<LocalizedStringBuilder, LocalizedString> builder) The description of the Product Tailoring at the time of creation.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
description
public ProductTailoringCreatedMessagePayloadBuilder description(@Nullable LocalizedString description) The description of the Product Tailoring at the time of creation.
- Parameters:
description
- value to be set- Returns:
- Builder
-
name
public ProductTailoringCreatedMessagePayloadBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) The name of the Product Tailoring at the time of creation.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
public ProductTailoringCreatedMessagePayloadBuilder withName(Function<LocalizedStringBuilder, LocalizedString> builder) The name of the Product Tailoring at the time of creation.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
name
The name of the Product Tailoring at the time of creation.
- Parameters:
name
- value to be set- Returns:
- Builder
-
slug
public ProductTailoringCreatedMessagePayloadBuilder slug(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) The slug of the Product Tailoring at the time of creation.
- Parameters:
builder
- function to build the slug value- Returns:
- Builder
-
withSlug
public ProductTailoringCreatedMessagePayloadBuilder withSlug(Function<LocalizedStringBuilder, LocalizedString> builder) The slug of the Product Tailoring at the time of creation.
- Parameters:
builder
- function to build the slug value- Returns:
- Builder
-
slug
The slug of the Product Tailoring at the time of creation.
- Parameters:
slug
- value to be set- Returns:
- Builder
-
metaTitle
public ProductTailoringCreatedMessagePayloadBuilder metaTitle(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) The metaTitle of the Product Tailoring at the time of creation.
- Parameters:
builder
- function to build the metaTitle value- Returns:
- Builder
-
withMetaTitle
public ProductTailoringCreatedMessagePayloadBuilder withMetaTitle(Function<LocalizedStringBuilder, LocalizedString> builder) The metaTitle of the Product Tailoring at the time of creation.
- Parameters:
builder
- function to build the metaTitle value- Returns:
- Builder
-
metaTitle
The metaTitle of the Product Tailoring at the time of creation.
- Parameters:
metaTitle
- value to be set- Returns:
- Builder
-
metaDescription
public ProductTailoringCreatedMessagePayloadBuilder metaDescription(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) The metaDescription of the Product Tailoring at the time of creation.
- Parameters:
builder
- function to build the metaDescription value- Returns:
- Builder
-
withMetaDescription
public ProductTailoringCreatedMessagePayloadBuilder withMetaDescription(Function<LocalizedStringBuilder, LocalizedString> builder) The metaDescription of the Product Tailoring at the time of creation.
- Parameters:
builder
- function to build the metaDescription value- Returns:
- Builder
-
metaDescription
public ProductTailoringCreatedMessagePayloadBuilder metaDescription(@Nullable LocalizedString metaDescription) The metaDescription of the Product Tailoring at the time of creation.
- Parameters:
metaDescription
- value to be set- Returns:
- Builder
-
metaKeywords
public ProductTailoringCreatedMessagePayloadBuilder metaKeywords(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) The metaKeywords of the Product Tailoring at the time of creation.
- Parameters:
builder
- function to build the metaKeywords value- Returns:
- Builder
-
withMetaKeywords
public ProductTailoringCreatedMessagePayloadBuilder withMetaKeywords(Function<LocalizedStringBuilder, LocalizedString> builder) The metaKeywords of the Product Tailoring at the time of creation.
- Parameters:
builder
- function to build the metaKeywords value- Returns:
- Builder
-
metaKeywords
public ProductTailoringCreatedMessagePayloadBuilder metaKeywords(@Nullable LocalizedString metaKeywords) The metaKeywords of the Product Tailoring at the time of creation.
- Parameters:
metaKeywords
- value to be set- Returns:
- Builder
-
variants
public ProductTailoringCreatedMessagePayloadBuilder variants(@Nullable ProductVariantTailoring... variants) The variants of the Product Tailoring at the time of creation.
- Parameters:
variants
- value to be set- Returns:
- Builder
-
variants
public ProductTailoringCreatedMessagePayloadBuilder variants(@Nullable List<ProductVariantTailoring> variants) The variants of the Product Tailoring at the time of creation.
- Parameters:
variants
- value to be set- Returns:
- Builder
-
plusVariants
public ProductTailoringCreatedMessagePayloadBuilder plusVariants(@Nullable ProductVariantTailoring... variants) The variants of the Product Tailoring at the time of creation.
- Parameters:
variants
- value to be set- Returns:
- Builder
-
plusVariants
public ProductTailoringCreatedMessagePayloadBuilder plusVariants(Function<ProductVariantTailoringBuilder, ProductVariantTailoringBuilder> builder) The variants of the Product Tailoring at the time of creation.
- Parameters:
builder
- function to build the variants value- Returns:
- Builder
-
withVariants
public ProductTailoringCreatedMessagePayloadBuilder withVariants(Function<ProductVariantTailoringBuilder, ProductVariantTailoringBuilder> builder) The variants of the Product Tailoring at the time of creation.
- Parameters:
builder
- function to build the variants value- Returns:
- Builder
-
addVariants
public ProductTailoringCreatedMessagePayloadBuilder addVariants(Function<ProductVariantTailoringBuilder, ProductVariantTailoring> builder) The variants of the Product Tailoring at the time of creation.
- Parameters:
builder
- function to build the variants value- Returns:
- Builder
-
setVariants
public ProductTailoringCreatedMessagePayloadBuilder setVariants(Function<ProductVariantTailoringBuilder, ProductVariantTailoring> builder) The variants of the Product Tailoring at the time of creation.
- Parameters:
builder
- function to build the variants value- Returns:
- Builder
-
published
true
if the ProductTailoring is published.- Parameters:
published
- value to be set- Returns:
- Builder
-
getKey
User-defined unique identifier of the Product Tailoring.
- Returns:
- key
-
getStore
The Store to which the Product Tailoring belongs.
- Returns:
- store
-
getProductKey
User-defined unique identifier of the Product this Product Tailoring belongs to.
- Returns:
- productKey
-
getProduct
Reference to the Product the Product Tailoring belongs to.
- Returns:
- product
-
getDescription
The description of the Product Tailoring at the time of creation.
- Returns:
- description
-
getName
The name of the Product Tailoring at the time of creation.
- Returns:
- name
-
getSlug
The slug of the Product Tailoring at the time of creation.
- Returns:
- slug
-
getMetaTitle
The metaTitle of the Product Tailoring at the time of creation.
- Returns:
- metaTitle
-
getMetaDescription
The metaDescription of the Product Tailoring at the time of creation.
- Returns:
- metaDescription
-
getMetaKeywords
The metaKeywords of the Product Tailoring at the time of creation.
- Returns:
- metaKeywords
-
getVariants
The variants of the Product Tailoring at the time of creation.
- Returns:
- variants
-
getPublished
true
if the ProductTailoring is published.- Returns:
- published
-
build
builds ProductTailoringCreatedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringCreatedMessagePayload>
- Returns:
- ProductTailoringCreatedMessagePayload
-
buildUnchecked
builds ProductTailoringCreatedMessagePayload without checking for non-null required values- Returns:
- ProductTailoringCreatedMessagePayload
-
of
factory method for an instance of ProductTailoringCreatedMessagePayloadBuilder- Returns:
- builder
-
of
public static ProductTailoringCreatedMessagePayloadBuilder of(ProductTailoringCreatedMessagePayload template) create builder for ProductTailoringCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-