Class ProductTailoringDescriptionSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductTailoringDescriptionSetMessagePayload>
Example to create an instance using the builder pattern
ProductTailoringDescriptionSetMessagePayload productTailoringDescriptionSetMessagePayload = ProductTailoringDescriptionSetMessagePayload.builder()
.store(storeBuilder -> storeBuilder)
.product(productBuilder -> productBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductTailoringDescriptionSetMessagePayload with checking for non-null required valuesbuilds ProductTailoringDescriptionSetMessagePayload without checking for non-null required valuesdescription
(LocalizedString description) The description of the Product Tailoring after the Set Description update action.The description of the Product Tailoring after the Set Description update action.The description of the Product Tailoring after the Set Description update action.The description of the ProductTailoring before the Set Description update action.Reference to the Product the Product Tailoring belongs to.User-defined unique identifier of the Product this Product Tailoring belongs to.getStore()
The Store to which the Product Tailoring belongs.of()
factory method for an instance of ProductTailoringDescriptionSetMessagePayloadBuildercreate builder for ProductTailoringDescriptionSetMessagePayload instanceoldDescription
(LocalizedString oldDescription) The description of the ProductTailoring before the Set Description update action.The description of the ProductTailoring before the Set Description 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.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 after the Set Description update action.The description of the ProductTailoring before the Set Description update action.Reference to the Product the Product Tailoring belongs to.The Store to which the Product Tailoring belongs.
-
Constructor Details
-
ProductTailoringDescriptionSetMessagePayloadBuilder
public ProductTailoringDescriptionSetMessagePayloadBuilder()
-
-
Method Details
-
store
public ProductTailoringDescriptionSetMessagePayloadBuilder 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 ProductTailoringDescriptionSetMessagePayloadBuilder 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 ProductTailoringDescriptionSetMessagePayloadBuilder 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 ProductTailoringDescriptionSetMessagePayloadBuilder 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 ProductTailoringDescriptionSetMessagePayloadBuilder description(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) The description of the Product Tailoring after the Set Description update action.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
withDescription
public ProductTailoringDescriptionSetMessagePayloadBuilder withDescription(Function<LocalizedStringBuilder, LocalizedString> builder) The description of the Product Tailoring after the Set Description update action.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
description
public ProductTailoringDescriptionSetMessagePayloadBuilder description(@Nullable LocalizedString description) The description of the Product Tailoring after the Set Description update action.
- Parameters:
description
- value to be set- Returns:
- Builder
-
oldDescription
public ProductTailoringDescriptionSetMessagePayloadBuilder oldDescription(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) The description of the ProductTailoring before the Set Description update action.
- Parameters:
builder
- function to build the oldDescription value- Returns:
- Builder
-
withOldDescription
public ProductTailoringDescriptionSetMessagePayloadBuilder withOldDescription(Function<LocalizedStringBuilder, LocalizedString> builder) The description of the ProductTailoring before the Set Description update action.
- Parameters:
builder
- function to build the oldDescription value- Returns:
- Builder
-
oldDescription
public ProductTailoringDescriptionSetMessagePayloadBuilder oldDescription(@Nullable LocalizedString oldDescription) The description of the ProductTailoring before the Set Description update action.
- Parameters:
oldDescription
- 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
-
getDescription
The description of the Product Tailoring after the Set Description update action.
- Returns:
- description
-
getOldDescription
The description of the ProductTailoring before the Set Description update action.
- Returns:
- oldDescription
-
build
builds ProductTailoringDescriptionSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringDescriptionSetMessagePayload>
- Returns:
- ProductTailoringDescriptionSetMessagePayload
-
buildUnchecked
builds ProductTailoringDescriptionSetMessagePayload without checking for non-null required values- Returns:
- ProductTailoringDescriptionSetMessagePayload
-
of
factory method for an instance of ProductTailoringDescriptionSetMessagePayloadBuilder- Returns:
- builder
-
of
public static ProductTailoringDescriptionSetMessagePayloadBuilder of(ProductTailoringDescriptionSetMessagePayload template) create builder for ProductTailoringDescriptionSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-