Class ProductPriceRemovedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ProductPriceRemovedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductPriceRemovedMessagePayload>
public class ProductPriceRemovedMessagePayloadBuilder
extends Object
implements Builder<ProductPriceRemovedMessagePayload>
ProductPriceRemovedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductPriceRemovedMessagePayload productPriceRemovedMessagePayload = ProductPriceRemovedMessagePayload.builder()
.variantId(0.3)
.price(priceBuilder -> priceBuilder)
.staged(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductPriceRemovedMessagePayload with checking for non-null required valuesbuilds ProductPriceRemovedMessagePayload without checking for non-null required valuesgetPrice()
The Embedded Price that was removed from the ProductVariant.Whether the update was only applied to the staged Product Projection.Unique identifier of the ProductVariant for which the Price was removed.of()
factory method for an instance of ProductPriceRemovedMessagePayloadBuilderof
(ProductPriceRemovedMessagePayload template) create builder for ProductPriceRemovedMessagePayload instanceThe Embedded Price that was removed from the ProductVariant.price
(Function<PriceBuilder, PriceBuilder> builder) The Embedded Price that was removed from the ProductVariant.Whether the update was only applied to the staged Product Projection.Unique identifier of the ProductVariant for which the Price was removed.withPrice
(Function<PriceBuilder, Price> builder) The Embedded Price that was removed from the ProductVariant.
-
Constructor Details
-
ProductPriceRemovedMessagePayloadBuilder
public ProductPriceRemovedMessagePayloadBuilder()
-
-
Method Details
-
variantId
Unique identifier of the ProductVariant for which the Price was removed.
- Parameters:
variantId
- value to be set- Returns:
- Builder
-
price
The Embedded Price that was removed from the ProductVariant.
- Parameters:
builder
- function to build the price value- Returns:
- Builder
-
withPrice
The Embedded Price that was removed from the ProductVariant.
- Parameters:
builder
- function to build the price value- Returns:
- Builder
-
price
The Embedded Price that was removed from the ProductVariant.
- Parameters:
price
- value to be set- Returns:
- Builder
-
staged
Whether the update was only applied to the staged Product Projection.
- Parameters:
staged
- value to be set- Returns:
- Builder
-
getVariantId
Unique identifier of the ProductVariant for which the Price was removed.
- Returns:
- variantId
-
getPrice
The Embedded Price that was removed from the ProductVariant.
- Returns:
- price
-
getStaged
Whether the update was only applied to the staged Product Projection.
- Returns:
- staged
-
build
builds ProductPriceRemovedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductPriceRemovedMessagePayload>
- Returns:
- ProductPriceRemovedMessagePayload
-
buildUnchecked
builds ProductPriceRemovedMessagePayload without checking for non-null required values- Returns:
- ProductPriceRemovedMessagePayload
-
of
factory method for an instance of ProductPriceRemovedMessagePayloadBuilder- Returns:
- builder
-
of
public static ProductPriceRemovedMessagePayloadBuilder of(ProductPriceRemovedMessagePayload template) create builder for ProductPriceRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-