Interface ShoppingListLineItemValue
public interface ShoppingListLineItemValue
ShoppingListLineItemValue
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListLineItemValue shoppingListLineItemValue = ShoppingListLineItemValue.builder()
.id("{id}")
.name(nameBuilder -> nameBuilder)
.variantId(1)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ShoppingListLineItemValuebuilder
(ShoppingListLineItemValue template) create builder for ShoppingListLineItemValue instancestatic ShoppingListLineItemValue
deepCopy
(ShoppingListLineItemValue template) factory method to create a deep copy of ShoppingListLineItemValue@NotNull String
getId()
id
of the ShoppingListLineItem.@NotNull @Valid LocalizedString
getName()
Name of the corresponding Product the Product Variant belongs to.@NotNull Integer
id
of the ProductVariant the ShoppingListLineItem refers to.static ShoppingListLineItemValue
of()
factory methodstatic ShoppingListLineItemValue
of
(ShoppingListLineItemValue template) factory method to create a shallow copy ShoppingListLineItemValuevoid
id
of the ShoppingListLineItem.void
setName
(LocalizedString name) Name of the corresponding Product the Product Variant belongs to.void
setVariantId
(Integer variantId) id
of the ProductVariant the ShoppingListLineItem refers to.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListLineItemValue>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getId
id
of the ShoppingListLineItem.- Returns:
- id
-
getName
Name of the corresponding Product the Product Variant belongs to.
- Returns:
- name
-
getVariantId
id
of the ProductVariant the ShoppingListLineItem refers to.- Returns:
- variantId
-
setId
id
of the ShoppingListLineItem.- Parameters:
id
- value to be set
-
setName
Name of the corresponding Product the Product Variant belongs to.
- Parameters:
name
- value to be set
-
setVariantId
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
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-