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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyShoppingListSetTextLineItemDescriptionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyShoppingListSetTextLineItemDescriptionActioncreate builder for MyShoppingListSetTextLineItemDescriptionAction instancefactory method to create a deep copy of MyShoppingListSetTextLineItemDescriptionAction@Valid LocalizedString
Value to set.Theid
of the TextLineItem to update.Thekey
of the TextLineItem to update.of()
factory methodfactory method to create a shallow copy MyShoppingListSetTextLineItemDescriptionActionvoid
setDescription
(LocalizedString description) 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<MyShoppingListSetTextLineItemDescriptionAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMyShoppingListSetTextLineItemDescriptionAction
(Function<MyShoppingListSetTextLineItemDescriptionAction, 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
-
SET_TEXT_LINE_ITEM_DESCRIPTION
discriminator value for MyShoppingListSetTextLineItemDescriptionAction- 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
-
getDescription
Value to set. If empty, any existing value will be removed.
- Returns:
- description
-
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
-
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
-
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
-