Class ProductVariantTailoringAddedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductVariantTailoringAddedMessagePayload>
Example to create an instance using the builder pattern
ProductVariantTailoringAddedMessagePayload productVariantTailoringAddedMessagePayload = ProductVariantTailoringAddedMessagePayload.builder()
.store(storeBuilder -> storeBuilder)
.product(productBuilder -> productBuilder)
.variantId(1)
.variant(variantBuilder -> variantBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductVariantTailoringAddedMessagePayload with checking for non-null required valuesbuilds ProductVariantTailoringAddedMessagePayload without checking for non-null required valuesReference to the tailored Product.key
of the tailored Product.getStore()
The Store to which the Product Tailoring belongs.The ProductVariantTailoring that was added to the ProductTailoring.id
of the ProductVariant added to the Tailoring.of()
factory method for an instance of ProductVariantTailoringAddedMessagePayloadBuilderof
(ProductVariantTailoringAddedMessagePayload template) create builder for ProductVariantTailoringAddedMessagePayload instanceproduct
(ProductReference product) Reference to the tailored Product.Reference to the tailored Product.productKey
(String productKey) key
of the tailored Product.store
(StoreKeyReference store) The Store to which the Product Tailoring belongs.The Store to which the Product Tailoring belongs.variant
(ProductVariantTailoring variant) The ProductVariantTailoring that was added to the ProductTailoring.The ProductVariantTailoring that was added to the ProductTailoring.id
of the ProductVariant added to the Tailoring.Reference to the tailored Product.The Store to which the Product Tailoring belongs.The ProductVariantTailoring that was added to the ProductTailoring.
-
Constructor Details
-
ProductVariantTailoringAddedMessagePayloadBuilder
public ProductVariantTailoringAddedMessagePayloadBuilder()
-
-
Method Details
-
store
public ProductVariantTailoringAddedMessagePayloadBuilder 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 ProductVariantTailoringAddedMessagePayloadBuilder 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
key
of the tailored Product.- Parameters:
productKey
- value to be set- Returns:
- Builder
-
product
public ProductVariantTailoringAddedMessagePayloadBuilder product(Function<ProductReferenceBuilder, ProductReferenceBuilder> builder) Reference to the tailored Product.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
withProduct
public ProductVariantTailoringAddedMessagePayloadBuilder withProduct(Function<ProductReferenceBuilder, ProductReference> builder) Reference to the tailored Product.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
product
Reference to the tailored Product.
- Parameters:
product
- value to be set- Returns:
- Builder
-
variantId
id
of the ProductVariant added to the Tailoring.- Parameters:
variantId
- value to be set- Returns:
- Builder
-
variant
public ProductVariantTailoringAddedMessagePayloadBuilder variant(Function<ProductVariantTailoringBuilder, ProductVariantTailoringBuilder> builder) The ProductVariantTailoring that was added to the ProductTailoring.
- Parameters:
builder
- function to build the variant value- Returns:
- Builder
-
withVariant
public ProductVariantTailoringAddedMessagePayloadBuilder withVariant(Function<ProductVariantTailoringBuilder, ProductVariantTailoring> builder) The ProductVariantTailoring that was added to the ProductTailoring.
- Parameters:
builder
- function to build the variant value- Returns:
- Builder
-
variant
The ProductVariantTailoring that was added to the ProductTailoring.
- Parameters:
variant
- value to be set- Returns:
- Builder
-
getStore
The Store to which the Product Tailoring belongs.
- Returns:
- store
-
getProductKey
key
of the tailored Product.- Returns:
- productKey
-
getProduct
Reference to the tailored Product.
- Returns:
- product
-
getVariantId
id
of the ProductVariant added to the Tailoring.- Returns:
- variantId
-
getVariant
The ProductVariantTailoring that was added to the ProductTailoring.
- Returns:
- variant
-
build
builds ProductVariantTailoringAddedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductVariantTailoringAddedMessagePayload>
- Returns:
- ProductVariantTailoringAddedMessagePayload
-
buildUnchecked
builds ProductVariantTailoringAddedMessagePayload without checking for non-null required values- Returns:
- ProductVariantTailoringAddedMessagePayload
-
of
factory method for an instance of ProductVariantTailoringAddedMessagePayloadBuilder- Returns:
- builder
-
of
public static ProductVariantTailoringAddedMessagePayloadBuilder of(ProductVariantTailoringAddedMessagePayload template) create builder for ProductVariantTailoringAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-