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 TypeMethodDescriptionbuild()
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.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.User-defined unique identifier of the Product Tailoring.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 instanceproduct
(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.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.The description 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.
-
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
-
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
-
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
-