Interface ShoppingListLineItemValue


public interface ShoppingListLineItemValue
ShoppingListLineItemValue
Example to create an instance using the builder pattern

     ShoppingListLineItemValue shoppingListLineItemValue = ShoppingListLineItemValue.builder()
             .id("{id}")
             .name(nameBuilder -> nameBuilder)
             .variantId(1)
             .build()
 
  • Method Details

    • getId

      @NotNull @NotNull String getId()

      id of the ShoppingListLineItem.

      Returns:
      id
    • getName

      @NotNull @Valid @NotNull @Valid LocalizedString getName()

      Name of the corresponding Product the Product Variant belongs to.

      Returns:
      name
    • getVariantId

      @NotNull @NotNull Integer getVariantId()

      id of the ProductVariant the ShoppingListLineItem refers to.

      Returns:
      variantId
    • setId

      void setId(String id)

      id of the ShoppingListLineItem.

      Parameters:
      id - value to be set
    • setName

      void setName(LocalizedString name)

      Name of the corresponding Product the Product Variant belongs to.

      Parameters:
      name - value to be set
    • setVariantId

      void setVariantId(Integer variantId)

      id of the ProductVariant the ShoppingListLineItem refers to.

      Parameters:
      variantId - value to be set
    • of

      factory method
      Returns:
      instance of ShoppingListLineItemValue
    • of

      factory method to create a shallow copy ShoppingListLineItemValue
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of ShoppingListLineItemValue
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for ShoppingListLineItemValue
      Returns:
      builder
    • builder

      create builder for ShoppingListLineItemValue instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withShoppingListLineItemValue

      default <T> T withShoppingListLineItemValue(Function<ShoppingListLineItemValue,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<ShoppingListLineItemValue> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference