Class ShoppingListLineItemAddedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ShoppingListLineItemAddedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ShoppingListLineItemAddedMessagePayload>
public class ShoppingListLineItemAddedMessagePayloadBuilder
extends Object
implements Builder<ShoppingListLineItemAddedMessagePayload>
ShoppingListLineItemAddedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListLineItemAddedMessagePayload shoppingListLineItemAddedMessagePayload = ShoppingListLineItemAddedMessagePayload.builder()
.lineItem(lineItemBuilder -> lineItemBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShoppingListLineItemAddedMessagePayload with checking for non-null required valuesbuilds ShoppingListLineItemAddedMessagePayload without checking for non-null required valuesLine Item that was added to the ShoppingList.lineItem
(ShoppingListLineItem lineItem) Line Item that was added to the ShoppingList.Line Item that was added to the ShoppingList.of()
factory method for an instance of ShoppingListLineItemAddedMessagePayloadBuilderof
(ShoppingListLineItemAddedMessagePayload template) create builder for ShoppingListLineItemAddedMessagePayload instanceLine Item that was added to the ShoppingList.
-
Constructor Details
-
ShoppingListLineItemAddedMessagePayloadBuilder
public ShoppingListLineItemAddedMessagePayloadBuilder()
-
-
Method Details
-
lineItem
public ShoppingListLineItemAddedMessagePayloadBuilder lineItem(Function<ShoppingListLineItemBuilder, ShoppingListLineItemBuilder> builder) Line Item that was added to the ShoppingList.
- Parameters:
builder
- function to build the lineItem value- Returns:
- Builder
-
withLineItem
public ShoppingListLineItemAddedMessagePayloadBuilder withLineItem(Function<ShoppingListLineItemBuilder, ShoppingListLineItem> builder) Line Item that was added to the ShoppingList.
- Parameters:
builder
- function to build the lineItem value- Returns:
- Builder
-
lineItem
Line Item that was added to the ShoppingList.
- Parameters:
lineItem
- value to be set- Returns:
- Builder
-
getLineItem
Line Item that was added to the ShoppingList.
- Returns:
- lineItem
-
build
builds ShoppingListLineItemAddedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShoppingListLineItemAddedMessagePayload>
- Returns:
- ShoppingListLineItemAddedMessagePayload
-
buildUnchecked
builds ShoppingListLineItemAddedMessagePayload without checking for non-null required values- Returns:
- ShoppingListLineItemAddedMessagePayload
-
of
factory method for an instance of ShoppingListLineItemAddedMessagePayloadBuilder- Returns:
- builder
-
of
public static ShoppingListLineItemAddedMessagePayloadBuilder of(ShoppingListLineItemAddedMessagePayload template) create builder for ShoppingListLineItemAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-