Interface ShoppingListChangeTextLineItemNameAction
- All Superinterfaces:
ResourceUpdateAction<ShoppingListUpdateAction>
,ShoppingListUpdateAction
- All Known Implementing Classes:
ShoppingListChangeTextLineItemNameActionImpl
ShoppingListChangeTextLineItemNameAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListChangeTextLineItemNameAction shoppingListChangeTextLineItemNameAction = ShoppingListChangeTextLineItemNameAction.builder()
.textLineItemId("{textLineItemId}")
.name(nameBuilder -> nameBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for ShoppingListChangeTextLineItemNameAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ShoppingListChangeTextLineItemNameActioncreate builder for ShoppingListChangeTextLineItemNameAction instancefactory method to create a deep copy of ShoppingListChangeTextLineItemNameAction@NotNull @Valid LocalizedString
getName()
New value to set.@NotNull String
Theid
of the TextLineItem to update.of()
factory methodof
(ShoppingListChangeTextLineItemNameAction template) factory method to create a shallow copy ShoppingListChangeTextLineItemNameActionvoid
setName
(LocalizedString name) New value to set.void
setTextLineItemId
(String textLineItemId) Theid
of the TextLineItem to update.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListChangeTextLineItemNameAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withShoppingListChangeTextLineItemNameAction
(Function<ShoppingListChangeTextLineItemNameAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods 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
The
id
of the TextLineItem to update.- Returns:
- textLineItemId
-
getName
New value to set. Must not be empty.
- Returns:
- name
-
setTextLineItemId
The
id
of the TextLineItem to update.- Parameters:
textLineItemId
- 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
-
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
-