Class ShoppingListReferenceBuilder

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

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

     ShoppingListReference shoppingListReference = ShoppingListReference.builder()
             .id("{id}")
             .build()
 
  • Constructor Details

    • ShoppingListReferenceBuilder

      public ShoppingListReferenceBuilder()
  • Method Details

    • id

      Unique identifier of the referenced ShoppingList.

      Parameters:
      id - value to be set
      Returns:
      Builder
    • obj

      Contains the representation of the expanded ShoppingList. Only present in responses to requests with Reference Expansion for ShoppingLists.

      Parameters:
      builder - function to build the obj value
      Returns:
      Builder
    • withObj

      Contains the representation of the expanded ShoppingList. Only present in responses to requests with Reference Expansion for ShoppingLists.

      Parameters:
      builder - function to build the obj value
      Returns:
      Builder
    • obj

      Contains the representation of the expanded ShoppingList. Only present in responses to requests with Reference Expansion for ShoppingLists.

      Parameters:
      obj - value to be set
      Returns:
      Builder
    • getId

      public String getId()

      Unique identifier of the referenced ShoppingList.

      Returns:
      id
    • getObj

      @Nullable public ShoppingList getObj()

      Contains the representation of the expanded ShoppingList. Only present in responses to requests with Reference Expansion for ShoppingLists.

      Returns:
      obj
    • build

      public ShoppingListReference build()
      builds ShoppingListReference with checking for non-null required values
      Specified by:
      build in interface Builder<ShoppingListReference>
      Returns:
      ShoppingListReference
    • buildUnchecked

      public ShoppingListReference buildUnchecked()
      builds ShoppingListReference without checking for non-null required values
      Returns:
      ShoppingListReference
    • of

      public static ShoppingListReferenceBuilder of()
      factory method for an instance of ShoppingListReferenceBuilder
      Returns:
      builder
    • of

      create builder for ShoppingListReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder