Package com.commercetools.api.models.me
Interface MyShoppingListChangeTextLineItemNameAction
- All Superinterfaces:
MyShoppingListUpdateAction
,ResourceUpdateAction<MyShoppingListUpdateAction>
MyShoppingListChangeTextLineItemNameAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyShoppingListChangeTextLineItemNameAction myShoppingListChangeTextLineItemNameAction = MyShoppingListChangeTextLineItemNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyShoppingListChangeTextLineItemNameAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyShoppingListChangeTextLineItemNameActioncreate builder for MyShoppingListChangeTextLineItemNameAction instancefactory method to create a deep copy of MyShoppingListChangeTextLineItemNameAction@NotNull @Valid LocalizedString
getName()
New value to set.Theid
of the TextLineItem to update.Thekey
of the TextLineItem to update.of()
factory methodof
(MyShoppingListChangeTextLineItemNameAction template) factory method to create a shallow copy MyShoppingListChangeTextLineItemNameActionvoid
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<MyShoppingListChangeTextLineItemNameAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMyShoppingListChangeTextLineItemNameAction
(Function<MyShoppingListChangeTextLineItemNameAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyShoppingListUpdateAction
getAction, withMyShoppingListUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_TEXT_LINE_ITEM_NAME
discriminator value for MyShoppingListChangeTextLineItemNameAction- 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 MyShoppingListChangeTextLineItemNameAction
-
of
static MyShoppingListChangeTextLineItemNameAction of(MyShoppingListChangeTextLineItemNameAction template) factory method to create a shallow copy MyShoppingListChangeTextLineItemNameAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyShoppingListChangeTextLineItemNameAction deepCopy(@Nullable MyShoppingListChangeTextLineItemNameAction template) factory method to create a deep copy of MyShoppingListChangeTextLineItemNameAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyShoppingListChangeTextLineItemNameAction- Returns:
- builder
-
builder
static MyShoppingListChangeTextLineItemNameActionBuilder builder(MyShoppingListChangeTextLineItemNameAction template) create builder for MyShoppingListChangeTextLineItemNameAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyShoppingListChangeTextLineItemNameAction
default <T> T withMyShoppingListChangeTextLineItemNameAction(Function<MyShoppingListChangeTextLineItemNameAction, 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<MyShoppingListChangeTextLineItemNameAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-