Interface ShoppingListAddTextLineItemAction
- All Superinterfaces:
CustomizableDraft<ShoppingListAddTextLineItemAction>,ResourceUpdateAction<ShoppingListUpdateAction>,ShoppingListUpdateAction
public interface ShoppingListAddTextLineItemAction
extends ShoppingListUpdateAction, CustomizableDraft<ShoppingListAddTextLineItemAction>
ShoppingListAddTextLineItemAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListAddTextLineItemAction shoppingListAddTextLineItemAction = ShoppingListAddTextLineItemAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ShoppingListAddTextLineItemAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ShoppingListAddTextLineItemActionbuilder(ShoppingListAddTextLineItemAction template) create builder for ShoppingListAddTextLineItemAction instancecopyDeep()deepCopy(ShoppingListAddTextLineItemAction template) factory method to create a deep copy of ShoppingListAddTextLineItemActionDate and time the TextLineItem is added to the ShoppingList.@Valid CustomFieldsDraftCustom Fields defined for the TextLineItem.@Valid LocalizedStringDescription of the TextLineItem.getKey()User-defined identifier of the TextLineItem.@NotNull @Valid LocalizedStringgetName()Name of the TextLineItem.Number of entries in the TextLineItem.of()factory methodof(ShoppingListAddTextLineItemAction template) factory method to create a shallow copy ShoppingListAddTextLineItemActionvoidsetAddedAt(ZonedDateTime addedAt) Date and time the TextLineItem is added to the ShoppingList.voidsetCustom(CustomFieldsDraft custom) Custom Fields defined for the TextLineItem.voidsetDescription(LocalizedString description) Description of the TextLineItem.voidUser-defined identifier of the TextLineItem.voidsetName(LocalizedString name) Name of the TextLineItem.voidsetQuantity(Long quantity) Number of entries in the TextLineItem.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListAddTextLineItemAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.CustomizableDraft
unwrapCustomizableDraftMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.shopping_list.ShoppingListUpdateAction
getAction, withShoppingListUpdateAction
-
Field Details
-
ADD_TEXT_LINE_ITEM
discriminator value for ShoppingListAddTextLineItemAction- See Also:
-
-
Method Details
-
getName
Name of the TextLineItem.
- Returns:
- name
-
getKey
String getKey()User-defined identifier of the TextLineItem. Must be unique per ShoppingList.
- Returns:
- key
-
getDescription
Description of the TextLineItem.
- Returns:
- description
-
getQuantity
Long getQuantity()Number of entries in the TextLineItem.
- Returns:
- quantity
-
getAddedAt
ZonedDateTime getAddedAt()Date and time the TextLineItem is added to the ShoppingList. If not set, the current date and time (UTC) is used.
- Returns:
- addedAt
-
getCustom
Custom Fields defined for the TextLineItem.
- Specified by:
getCustomin interfaceCustomizableDraft<ShoppingListAddTextLineItemAction>- Returns:
- custom
-
setName
Name of the TextLineItem.
- Parameters:
name- value to be set
-
setKey
User-defined identifier of the TextLineItem. Must be unique per ShoppingList.
- Parameters:
key- value to be set
-
setDescription
Description of the TextLineItem.
- Parameters:
description- value to be set
-
setQuantity
Number of entries in the TextLineItem.
- Parameters:
quantity- value to be set
-
setAddedAt
Date and time the TextLineItem is added to the ShoppingList. If not set, the current date and time (UTC) is used.
- Parameters:
addedAt- value to be set
-
setCustom
Custom Fields defined for the TextLineItem.
- Specified by:
setCustomin interfaceCustomizableDraft<ShoppingListAddTextLineItemAction>- Parameters:
custom- value to be set
-
of
factory method- Returns:
- instance of ShoppingListAddTextLineItemAction
-
of
factory method to create a shallow copy ShoppingListAddTextLineItemAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ShoppingListAddTextLineItemAction copyDeep()- Specified by:
copyDeepin interfaceShoppingListUpdateAction
-
deepCopy
@Nullable static ShoppingListAddTextLineItemAction deepCopy(@Nullable ShoppingListAddTextLineItemAction template) factory method to create a deep copy of ShoppingListAddTextLineItemAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShoppingListAddTextLineItemAction- Returns:
- builder
-
builder
create builder for ShoppingListAddTextLineItemAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withShoppingListAddTextLineItemAction
default <T> T withShoppingListAddTextLineItemAction(Function<ShoppingListAddTextLineItemAction, 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<ShoppingListAddTextLineItemAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-