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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyShoppingListChangeTextLineItemNameAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyShoppingListChangeTextLineItemNameActioncreate builder for MyShoppingListChangeTextLineItemNameAction instancecopyDeep()factory method to create a deep copy of MyShoppingListChangeTextLineItemNameAction@NotNull @Valid LocalizedStringgetName()New value to set.Theidof the TextLineItem to update.Thekeyof the TextLineItem to update.of()factory methodof(MyShoppingListChangeTextLineItemNameAction template) factory method to create a shallow copy MyShoppingListChangeTextLineItemNameActionvoidsetName(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<MyShoppingListChangeTextLineItemNameAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMyShoppingListChangeTextLineItemNameAction(Function<MyShoppingListChangeTextLineItemNameAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyShoppingListUpdateAction
getAction, withMyShoppingListUpdateActionMethods 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
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 MyShoppingListChangeTextLineItemNameAction
-
of
static MyShoppingListChangeTextLineItemNameAction of(MyShoppingListChangeTextLineItemNameAction template) factory method to create a shallow copy MyShoppingListChangeTextLineItemNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyShoppingListChangeTextLineItemNameAction copyDeep()- Specified by:
copyDeepin interfaceMyShoppingListUpdateAction
-
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
-