Class ProductTailoringSlugSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductTailoringSlugSetMessagePayload>
Example to create an instance using the builder pattern
ProductTailoringSlugSetMessagePayload productTailoringSlugSetMessagePayload = ProductTailoringSlugSetMessagePayload.builder()
.store(storeBuilder -> storeBuilder)
.product(productBuilder -> productBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductTailoringSlugSetMessagePayload with checking for non-null required valuesbuilds ProductTailoringSlugSetMessagePayload without checking for non-null required valuesThe slug of the ProductTailoring before the Set Slug update action.Reference to the Product the Product Tailoring belongs to.User-defined unique identifier of the Product this Product Tailoring belongs to.getSlug()
The slug of the Product Tailoring after the Set Slug update action.getStore()
The Store to which the Product Tailoring belongs.of()
factory method for an instance of ProductTailoringSlugSetMessagePayloadBuilderof
(ProductTailoringSlugSetMessagePayload template) create builder for ProductTailoringSlugSetMessagePayload instanceoldSlug
(LocalizedString oldSlug) The slug of the ProductTailoring before the Set Slug update action.The slug of the ProductTailoring before the Set Slug update action.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.slug
(LocalizedString slug) The slug of the Product Tailoring after the Set Slug update action.The slug of the Product Tailoring after the Set Slug update action.store
(StoreKeyReference store) The Store to which the Product Tailoring belongs.The Store to which the Product Tailoring belongs.The slug of the ProductTailoring before the Set Slug update action.Reference to the Product the Product Tailoring belongs to.The slug of the Product Tailoring after the Set Slug update action.The Store to which the Product Tailoring belongs.
-
Constructor Details
-
ProductTailoringSlugSetMessagePayloadBuilder
public ProductTailoringSlugSetMessagePayloadBuilder()
-
-
Method Details
-
store
public ProductTailoringSlugSetMessagePayloadBuilder 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 ProductTailoringSlugSetMessagePayloadBuilder 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 ProductTailoringSlugSetMessagePayloadBuilder 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 ProductTailoringSlugSetMessagePayloadBuilder 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
-
slug
public ProductTailoringSlugSetMessagePayloadBuilder slug(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) The slug of the Product Tailoring after the Set Slug update action.
- Parameters:
builder
- function to build the slug value- Returns:
- Builder
-
withSlug
public ProductTailoringSlugSetMessagePayloadBuilder withSlug(Function<LocalizedStringBuilder, LocalizedString> builder) The slug of the Product Tailoring after the Set Slug update action.
- Parameters:
builder
- function to build the slug value- Returns:
- Builder
-
slug
The slug of the Product Tailoring after the Set Slug update action.
- Parameters:
slug
- value to be set- Returns:
- Builder
-
oldSlug
public ProductTailoringSlugSetMessagePayloadBuilder oldSlug(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) The slug of the ProductTailoring before the Set Slug update action.
- Parameters:
builder
- function to build the oldSlug value- Returns:
- Builder
-
withOldSlug
public ProductTailoringSlugSetMessagePayloadBuilder withOldSlug(Function<LocalizedStringBuilder, LocalizedString> builder) The slug of the ProductTailoring before the Set Slug update action.
- Parameters:
builder
- function to build the oldSlug value- Returns:
- Builder
-
oldSlug
The slug of the ProductTailoring before the Set Slug update action.
- Parameters:
oldSlug
- value to be set- Returns:
- Builder
-
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
-
getSlug
The slug of the Product Tailoring after the Set Slug update action.
- Returns:
- slug
-
getOldSlug
The slug of the ProductTailoring before the Set Slug update action.
- Returns:
- oldSlug
-
build
builds ProductTailoringSlugSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringSlugSetMessagePayload>
- Returns:
- ProductTailoringSlugSetMessagePayload
-
buildUnchecked
builds ProductTailoringSlugSetMessagePayload without checking for non-null required values- Returns:
- ProductTailoringSlugSetMessagePayload
-
of
factory method for an instance of ProductTailoringSlugSetMessagePayloadBuilder- Returns:
- builder
-
of
public static ProductTailoringSlugSetMessagePayloadBuilder of(ProductTailoringSlugSetMessagePayload template) create builder for ProductTailoringSlugSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-