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
Modifier 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.Theid
of the TextLineItem to update.Thekey
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.void
setTextLineItemKey
(String textLineItemKey) Thekey
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
String getTextLineItemId()The
id
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- textLineItemId
-
getTextLineItemKey
String getTextLineItemKey()The
key
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- textLineItemKey
-
getName
New value to set. Must not be empty.
- Returns:
- name
-
setTextLineItemId
The
id
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
textLineItemId
- value to be set
-
setTextLineItemKey
The
key
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is 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
-
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
-