Class ProductTailoringKeySetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductTailoringKeySetMessagePayload>
Example to create an instance using the builder pattern
ProductTailoringKeySetMessagePayload productTailoringKeySetMessagePayload = ProductTailoringKeySetMessagePayload.builder()
.store(storeBuilder -> storeBuilder)
.product(productBuilder -> productBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductTailoringKeySetMessagePayload with checking for non-null required valuesbuilds ProductTailoringKeySetMessagePayload without checking for non-null required valuesgetKey()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 ProductTailoringKeySetMessagePayloadBuilderof(ProductTailoringKeySetMessagePayload template) create builder for ProductTailoringKeySetMessagePayload 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.store(StoreKeyReference store) The Store to which the Product Tailoring belongs.The Store to which the Product Tailoring belongs.Reference to the Product the Product Tailoring belongs to.The Store to which the Product Tailoring belongs.
-
Constructor Details
-
ProductTailoringKeySetMessagePayloadBuilder
public ProductTailoringKeySetMessagePayloadBuilder()
-
-
Method Details
-
store
public ProductTailoringKeySetMessagePayloadBuilder 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 ProductTailoringKeySetMessagePayloadBuilder 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 ProductTailoringKeySetMessagePayloadBuilder 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 ProductTailoringKeySetMessagePayloadBuilder 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
-
key
keyvalue of the ProductTailoring after the Set Key update action.- Parameters:
key- value to be set- Returns:
- Builder
-
oldKey
keyvalue of the ProductTailoring before the Set Key update action.- Parameters:
oldKey- 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
-
getKey
keyvalue of the ProductTailoring after the Set Key update action.- Returns:
- key
-
getOldKey
keyvalue of the ProductTailoring before the Set Key update action.- Returns:
- oldKey
-
build
builds ProductTailoringKeySetMessagePayload with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductTailoringKeySetMessagePayload>- Returns:
- ProductTailoringKeySetMessagePayload
-
buildUnchecked
builds ProductTailoringKeySetMessagePayload without checking for non-null required values- Returns:
- ProductTailoringKeySetMessagePayload
-
of
factory method for an instance of ProductTailoringKeySetMessagePayloadBuilder- Returns:
- builder
-
of
public static ProductTailoringKeySetMessagePayloadBuilder of(ProductTailoringKeySetMessagePayload template) create builder for ProductTailoringKeySetMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-