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