Interface ShoppingListChangeTextLineItemNameAction
- All Superinterfaces:
ResourceUpdateAction<ShoppingListUpdateAction>,ShoppingListUpdateAction
ShoppingListChangeTextLineItemNameAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListChangeTextLineItemNameAction shoppingListChangeTextLineItemNameAction = ShoppingListChangeTextLineItemNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ShoppingListChangeTextLineItemNameAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ShoppingListChangeTextLineItemNameActioncreate builder for ShoppingListChangeTextLineItemNameAction instancecopyDeep()factory method to create a deep copy of ShoppingListChangeTextLineItemNameAction@NotNull @Valid LocalizedStringgetName()New value to set.Theidof the TextLineItem to update.Thekeyof the TextLineItem to update.of()factory methodof(ShoppingListChangeTextLineItemNameAction template) factory method to create a shallow copy ShoppingListChangeTextLineItemNameActionvoidsetName(LocalizedString name) New value to set.voidsetTextLineItemId(String textLineItemId) Theidof the TextLineItem to update.voidsetTextLineItemKey(String textLineItemKey) Thekeyof the TextLineItem to update.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListChangeTextLineItemNameAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithShoppingListChangeTextLineItemNameAction(Function<ShoppingListChangeTextLineItemNameAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.shopping_list.ShoppingListUpdateAction
getAction, withShoppingListUpdateAction
-
Field Details
-
CHANGE_TEXT_LINE_ITEM_NAME
discriminator value for ShoppingListChangeTextLineItemNameAction- See Also:
-
-
Method Details
-
getTextLineItemId
String getTextLineItemId()The
idof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- textLineItemId
-
getTextLineItemKey
String getTextLineItemKey()The
keyof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- textLineItemKey
-
getName
New value to set. Must not be empty.
- Returns:
- name
-
setTextLineItemId
The
idof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
textLineItemId- value to be set
-
setTextLineItemKey
The
keyof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
textLineItemKey- value to be set
-
setName
New value to set. Must not be empty.
- Parameters:
name- value to be set
-
of
factory method- Returns:
- instance of ShoppingListChangeTextLineItemNameAction
-
of
static ShoppingListChangeTextLineItemNameAction of(ShoppingListChangeTextLineItemNameAction template) factory method to create a shallow copy ShoppingListChangeTextLineItemNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ShoppingListChangeTextLineItemNameAction copyDeep()- Specified by:
copyDeepin interfaceShoppingListUpdateAction
-
deepCopy
@Nullable static ShoppingListChangeTextLineItemNameAction deepCopy(@Nullable ShoppingListChangeTextLineItemNameAction template) factory method to create a deep copy of ShoppingListChangeTextLineItemNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShoppingListChangeTextLineItemNameAction- Returns:
- builder
-
builder
static ShoppingListChangeTextLineItemNameActionBuilder builder(ShoppingListChangeTextLineItemNameAction template) create builder for ShoppingListChangeTextLineItemNameAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withShoppingListChangeTextLineItemNameAction
default <T> T withShoppingListChangeTextLineItemNameAction(Function<ShoppingListChangeTextLineItemNameAction, 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<ShoppingListChangeTextLineItemNameAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-