Class ProductSelectionVariantExclusionChangedMessagePayloadBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ProductSelectionVariantExclusionChangedMessagePayload>
Example to create an instance using the builder pattern
ProductSelectionVariantExclusionChangedMessagePayload productSelectionVariantExclusionChangedMessagePayload = ProductSelectionVariantExclusionChangedMessagePayload.builder()
.product(productBuilder -> productBuilder)
.oldVariantExclusion(oldVariantExclusionBuilder -> oldVariantExclusionBuilder)
.newVariantExclusion(newVariantExclusionBuilder -> newVariantExclusionBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSelectionVariantExclusionChangedMessagePayload with checking for non-null required valuesbuilds ProductSelectionVariantExclusionChangedMessagePayload without checking for non-null required valuesProduct Variant Exclusion after the Set Variant Exclusion update action.Product Variant Exclusion before the Set Variant Exclusion update action.Product for which the Product Variant Exclusion changed.newVariantExclusion
(ProductVariantExclusion newVariantExclusion) Product Variant Exclusion after the Set Variant Exclusion update action.newVariantExclusion
(Function<ProductVariantExclusionBuilder, ProductVariantExclusionBuilder> builder) Product Variant Exclusion after the Set Variant Exclusion update action.of()
factory method for an instance of ProductSelectionVariantExclusionChangedMessagePayloadBuildercreate builder for ProductSelectionVariantExclusionChangedMessagePayload instanceoldVariantExclusion
(ProductVariantExclusion oldVariantExclusion) Product Variant Exclusion before the Set Variant Exclusion update action.oldVariantExclusion
(Function<ProductVariantExclusionBuilder, ProductVariantExclusionBuilder> builder) Product Variant Exclusion before the Set Variant Exclusion update action.product
(ProductReference product) Product for which the Product Variant Exclusion changed.Product for which the Product Variant Exclusion changed.Product Variant Exclusion after the Set Variant Exclusion update action.Product Variant Exclusion before the Set Variant Exclusion update action.Product for which the Product Variant Exclusion changed.
-
Constructor Details
-
ProductSelectionVariantExclusionChangedMessagePayloadBuilder
public ProductSelectionVariantExclusionChangedMessagePayloadBuilder()
-
-
Method Details
-
product
public ProductSelectionVariantExclusionChangedMessagePayloadBuilder product(Function<ProductReferenceBuilder, ProductReferenceBuilder> builder) Product for which the Product Variant Exclusion changed.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
withProduct
public ProductSelectionVariantExclusionChangedMessagePayloadBuilder withProduct(Function<ProductReferenceBuilder, ProductReference> builder) Product for which the Product Variant Exclusion changed.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
product
public ProductSelectionVariantExclusionChangedMessagePayloadBuilder product(ProductReference product) Product for which the Product Variant Exclusion changed.
- Parameters:
product
- value to be set- Returns:
- Builder
-
oldVariantExclusion
public ProductSelectionVariantExclusionChangedMessagePayloadBuilder oldVariantExclusion(Function<ProductVariantExclusionBuilder, ProductVariantExclusionBuilder> builder) Product Variant Exclusion before the Set Variant Exclusion update action.
- Parameters:
builder
- function to build the oldVariantExclusion value- Returns:
- Builder
-
withOldVariantExclusion
public ProductSelectionVariantExclusionChangedMessagePayloadBuilder withOldVariantExclusion(Function<ProductVariantExclusionBuilder, ProductVariantExclusion> builder) Product Variant Exclusion before the Set Variant Exclusion update action.
- Parameters:
builder
- function to build the oldVariantExclusion value- Returns:
- Builder
-
oldVariantExclusion
public ProductSelectionVariantExclusionChangedMessagePayloadBuilder oldVariantExclusion(ProductVariantExclusion oldVariantExclusion) Product Variant Exclusion before the Set Variant Exclusion update action.
- Parameters:
oldVariantExclusion
- value to be set- Returns:
- Builder
-
newVariantExclusion
public ProductSelectionVariantExclusionChangedMessagePayloadBuilder newVariantExclusion(Function<ProductVariantExclusionBuilder, ProductVariantExclusionBuilder> builder) Product Variant Exclusion after the Set Variant Exclusion update action.
- Parameters:
builder
- function to build the newVariantExclusion value- Returns:
- Builder
-
withNewVariantExclusion
public ProductSelectionVariantExclusionChangedMessagePayloadBuilder withNewVariantExclusion(Function<ProductVariantExclusionBuilder, ProductVariantExclusion> builder) Product Variant Exclusion after the Set Variant Exclusion update action.
- Parameters:
builder
- function to build the newVariantExclusion value- Returns:
- Builder
-
newVariantExclusion
public ProductSelectionVariantExclusionChangedMessagePayloadBuilder newVariantExclusion(ProductVariantExclusion newVariantExclusion) Product Variant Exclusion after the Set Variant Exclusion update action.
- Parameters:
newVariantExclusion
- value to be set- Returns:
- Builder
-
getProduct
Product for which the Product Variant Exclusion changed.
- Returns:
- product
-
getOldVariantExclusion
Product Variant Exclusion before the Set Variant Exclusion update action.
- Returns:
- oldVariantExclusion
-
getNewVariantExclusion
Product Variant Exclusion after the Set Variant Exclusion update action.
- Returns:
- newVariantExclusion
-
build
builds ProductSelectionVariantExclusionChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<ProductSelectionVariantExclusionChangedMessagePayload>
- Returns:
- ProductSelectionVariantExclusionChangedMessagePayload
-
buildUnchecked
builds ProductSelectionVariantExclusionChangedMessagePayload without checking for non-null required values- Returns:
- ProductSelectionVariantExclusionChangedMessagePayload
-
of
factory method for an instance of ProductSelectionVariantExclusionChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static ProductSelectionVariantExclusionChangedMessagePayloadBuilder of(ProductSelectionVariantExclusionChangedMessagePayload template) create builder for ProductSelectionVariantExclusionChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-