Class ProductPriceDiscountsSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ProductPriceDiscountsSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductPriceDiscountsSetMessagePayload>
public class ProductPriceDiscountsSetMessagePayloadBuilder
extends Object
implements Builder<ProductPriceDiscountsSetMessagePayload>
ProductPriceDiscountsSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductPriceDiscountsSetMessagePayload productPriceDiscountsSetMessagePayload = ProductPriceDiscountsSetMessagePayload.builder()
.plusUpdatedPrices(updatedPricesBuilder -> updatedPricesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddUpdatedPrices
(Function<ProductPriceDiscountsSetUpdatedPriceBuilder, ProductPriceDiscountsSetUpdatedPrice> builder) Array containing details about the Embedded Prices that were updated.build()
builds ProductPriceDiscountsSetMessagePayload with checking for non-null required valuesbuilds ProductPriceDiscountsSetMessagePayload without checking for non-null required valuesArray containing details about the Embedded Prices that were updated.of()
factory method for an instance of ProductPriceDiscountsSetMessagePayloadBuilderof
(ProductPriceDiscountsSetMessagePayload template) create builder for ProductPriceDiscountsSetMessagePayload instanceplusUpdatedPrices
(ProductPriceDiscountsSetUpdatedPrice... updatedPrices) Array containing details about the Embedded Prices that were updated.plusUpdatedPrices
(Function<ProductPriceDiscountsSetUpdatedPriceBuilder, ProductPriceDiscountsSetUpdatedPriceBuilder> builder) Array containing details about the Embedded Prices that were updated.setUpdatedPrices
(Function<ProductPriceDiscountsSetUpdatedPriceBuilder, ProductPriceDiscountsSetUpdatedPrice> builder) Array containing details about the Embedded Prices that were updated.updatedPrices
(ProductPriceDiscountsSetUpdatedPrice... updatedPrices) Array containing details about the Embedded Prices that were updated.updatedPrices
(List<ProductPriceDiscountsSetUpdatedPrice> updatedPrices) Array containing details about the Embedded Prices that were updated.withUpdatedPrices
(Function<ProductPriceDiscountsSetUpdatedPriceBuilder, ProductPriceDiscountsSetUpdatedPriceBuilder> builder) Array containing details about the Embedded Prices that were updated.
-
Constructor Details
-
ProductPriceDiscountsSetMessagePayloadBuilder
public ProductPriceDiscountsSetMessagePayloadBuilder()
-
-
Method Details
-
updatedPrices
public ProductPriceDiscountsSetMessagePayloadBuilder updatedPrices(ProductPriceDiscountsSetUpdatedPrice... updatedPrices) Array containing details about the Embedded Prices that were updated.
- Parameters:
updatedPrices
- value to be set- Returns:
- Builder
-
updatedPrices
public ProductPriceDiscountsSetMessagePayloadBuilder updatedPrices(List<ProductPriceDiscountsSetUpdatedPrice> updatedPrices) Array containing details about the Embedded Prices that were updated.
- Parameters:
updatedPrices
- value to be set- Returns:
- Builder
-
plusUpdatedPrices
public ProductPriceDiscountsSetMessagePayloadBuilder plusUpdatedPrices(ProductPriceDiscountsSetUpdatedPrice... updatedPrices) Array containing details about the Embedded Prices that were updated.
- Parameters:
updatedPrices
- value to be set- Returns:
- Builder
-
plusUpdatedPrices
public ProductPriceDiscountsSetMessagePayloadBuilder plusUpdatedPrices(Function<ProductPriceDiscountsSetUpdatedPriceBuilder, ProductPriceDiscountsSetUpdatedPriceBuilder> builder) Array containing details about the Embedded Prices that were updated.
- Parameters:
builder
- function to build the updatedPrices value- Returns:
- Builder
-
withUpdatedPrices
public ProductPriceDiscountsSetMessagePayloadBuilder withUpdatedPrices(Function<ProductPriceDiscountsSetUpdatedPriceBuilder, ProductPriceDiscountsSetUpdatedPriceBuilder> builder) Array containing details about the Embedded Prices that were updated.
- Parameters:
builder
- function to build the updatedPrices value- Returns:
- Builder
-
addUpdatedPrices
public ProductPriceDiscountsSetMessagePayloadBuilder addUpdatedPrices(Function<ProductPriceDiscountsSetUpdatedPriceBuilder, ProductPriceDiscountsSetUpdatedPrice> builder) Array containing details about the Embedded Prices that were updated.
- Parameters:
builder
- function to build the updatedPrices value- Returns:
- Builder
-
setUpdatedPrices
public ProductPriceDiscountsSetMessagePayloadBuilder setUpdatedPrices(Function<ProductPriceDiscountsSetUpdatedPriceBuilder, ProductPriceDiscountsSetUpdatedPrice> builder) Array containing details about the Embedded Prices that were updated.
- Parameters:
builder
- function to build the updatedPrices value- Returns:
- Builder
-
getUpdatedPrices
Array containing details about the Embedded Prices that were updated.
- Returns:
- updatedPrices
-
build
builds ProductPriceDiscountsSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductPriceDiscountsSetMessagePayload>
- Returns:
- ProductPriceDiscountsSetMessagePayload
-
buildUnchecked
builds ProductPriceDiscountsSetMessagePayload without checking for non-null required values- Returns:
- ProductPriceDiscountsSetMessagePayload
-
of
factory method for an instance of ProductPriceDiscountsSetMessagePayloadBuilder- Returns:
- builder
-
of
public static ProductPriceDiscountsSetMessagePayloadBuilder of(ProductPriceDiscountsSetMessagePayload template) create builder for ProductPriceDiscountsSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-