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 instancecopyDeep()static ShoppingListLineItemValuedeepCopy(ShoppingListLineItemValue template) factory method to create a deep copy of ShoppingListLineItemValue@NotNull StringgetId()idof the ShoppingListLineItem.@NotNull @Valid LocalizedStringgetName()Name of the corresponding Product the Product Variant belongs to.@NotNull Integeridof the ProductVariant the ShoppingListLineItem refers to.static ShoppingListLineItemValueof()factory methodstatic ShoppingListLineItemValueof(ShoppingListLineItemValue template) factory method to create a shallow copy ShoppingListLineItemValuevoididof the ShoppingListLineItem.voidsetName(LocalizedString name) Name of the corresponding Product the Product Variant belongs to.voidsetVariantId(Integer variantId) idof the ProductVariant the ShoppingListLineItem refers to.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListLineItemValue>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getId
idof the ShoppingListLineItem.- Returns:
- id
-
getName
Name of the corresponding Product the Product Variant belongs to.
- Returns:
- name
-
getVariantId
idof the ProductVariant the ShoppingListLineItem refers to.- Returns:
- variantId
-
setId
idof 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
idof 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
-
copyDeep
ShoppingListLineItemValue copyDeep() -
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
-