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