Package com.commercetools.api.models.me
Interface MyShoppingListSetTextLineItemDescriptionAction
- All Superinterfaces:
MyShoppingListUpdateAction,ResourceUpdateAction<MyShoppingListUpdateAction>
MyShoppingListSetTextLineItemDescriptionAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyShoppingListSetTextLineItemDescriptionAction myShoppingListSetTextLineItemDescriptionAction = MyShoppingListSetTextLineItemDescriptionAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyShoppingListSetTextLineItemDescriptionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyShoppingListSetTextLineItemDescriptionActioncreate builder for MyShoppingListSetTextLineItemDescriptionAction instancecopyDeep()factory method to create a deep copy of MyShoppingListSetTextLineItemDescriptionAction@Valid LocalizedStringValue to set.Theidof the TextLineItem to update.Thekeyof the TextLineItem to update.of()factory methodfactory method to create a shallow copy MyShoppingListSetTextLineItemDescriptionActionvoidsetDescription(LocalizedString description) 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<MyShoppingListSetTextLineItemDescriptionAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMyShoppingListSetTextLineItemDescriptionAction(Function<MyShoppingListSetTextLineItemDescriptionAction, 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
-
SET_TEXT_LINE_ITEM_DESCRIPTION
discriminator value for MyShoppingListSetTextLineItemDescriptionAction- 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
-
getDescription
Value to set. If empty, any existing value will be removed.
- Returns:
- description
-
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
-
setDescription
Value to set. If empty, any existing value will be removed.
- Parameters:
description- value to be set
-
of
factory method- Returns:
- instance of MyShoppingListSetTextLineItemDescriptionAction
-
of
static MyShoppingListSetTextLineItemDescriptionAction of(MyShoppingListSetTextLineItemDescriptionAction template) factory method to create a shallow copy MyShoppingListSetTextLineItemDescriptionAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
- Specified by:
copyDeepin interfaceMyShoppingListUpdateAction
-
deepCopy
@Nullable static MyShoppingListSetTextLineItemDescriptionAction deepCopy(@Nullable MyShoppingListSetTextLineItemDescriptionAction template) factory method to create a deep copy of MyShoppingListSetTextLineItemDescriptionAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyShoppingListSetTextLineItemDescriptionAction- Returns:
- builder
-
builder
static MyShoppingListSetTextLineItemDescriptionActionBuilder builder(MyShoppingListSetTextLineItemDescriptionAction template) create builder for MyShoppingListSetTextLineItemDescriptionAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyShoppingListSetTextLineItemDescriptionAction
default <T> T withMyShoppingListSetTextLineItemDescriptionAction(Function<MyShoppingListSetTextLineItemDescriptionAction, 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<MyShoppingListSetTextLineItemDescriptionAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-