Class ShoppingListBuilder

java.lang.Object
com.commercetools.api.models.shopping_list.ShoppingListBuilder
All Implemented Interfaces:
Builder<ShoppingList>

public class ShoppingListBuilder extends Object implements Builder<ShoppingList>
ShoppingListBuilder
Example to create an instance using the builder pattern

     ShoppingList shoppingList = ShoppingList.builder()
             .id("{id}")
             .version(0.3)
             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .name(nameBuilder -> nameBuilder)
             .plusLineItems(lineItemsBuilder -> lineItemsBuilder)
             .plusTextLineItems(textLineItemsBuilder -> textLineItemsBuilder)
             .build()
 
  • Constructor Details

    • ShoppingListBuilder

      public ShoppingListBuilder()
  • Method Details