Interface ShoppingListSetTextLineItemCustomTypeAction
- All Superinterfaces:
ResourceUpdateAction<ShoppingListUpdateAction>,ShoppingListUpdateAction
ShoppingListSetTextLineItemCustomTypeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListSetTextLineItemCustomTypeAction shoppingListSetTextLineItemCustomTypeAction = ShoppingListSetTextLineItemCustomTypeAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ShoppingListSetTextLineItemCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ShoppingListSetTextLineItemCustomTypeActioncreate builder for ShoppingListSetTextLineItemCustomTypeAction instancecopyDeep()factory method to create a deep copy of ShoppingListSetTextLineItemCustomTypeAction@Valid FieldContainerSets the Custom Fields fields for the TextLineItem.Theidof the TextLineItem to update.Thekeyof the TextLineItem to update.@Valid TypeResourceIdentifiergetType()Defines the Type that extends the TextLineItem with Custom Fields.of()factory methodfactory method to create a shallow copy ShoppingListSetTextLineItemCustomTypeActionvoidsetFields(FieldContainer fields) Sets the Custom Fields fields for the TextLineItem.voidsetTextLineItemId(String textLineItemId) Theidof the TextLineItem to update.voidsetTextLineItemKey(String textLineItemKey) Thekeyof the TextLineItem to update.voidDefines the Type that extends the TextLineItem with Custom Fields.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListSetTextLineItemCustomTypeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithShoppingListSetTextLineItemCustomTypeAction(Function<ShoppingListSetTextLineItemCustomTypeAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.shopping_list.ShoppingListUpdateAction
getAction, withShoppingListUpdateAction
-
Field Details
-
SET_TEXT_LINE_ITEM_CUSTOM_TYPE
discriminator value for ShoppingListSetTextLineItemCustomTypeAction- 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
-
getType
Defines the Type that extends the TextLineItem with Custom Fields. If absent, any existing Type and Custom Fields are removed from the TextLineItem.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the TextLineItem.
- Returns:
- fields
-
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
-
setType
Defines the Type that extends the TextLineItem with Custom Fields. If absent, any existing Type and Custom Fields are removed from the TextLineItem.
- Parameters:
type- value to be set
-
setFields
Sets the Custom Fields fields for the TextLineItem.
- Parameters:
fields- value to be set
-
of
factory method- Returns:
- instance of ShoppingListSetTextLineItemCustomTypeAction
-
of
static ShoppingListSetTextLineItemCustomTypeAction of(ShoppingListSetTextLineItemCustomTypeAction template) factory method to create a shallow copy ShoppingListSetTextLineItemCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ShoppingListSetTextLineItemCustomTypeAction copyDeep()- Specified by:
copyDeepin interfaceShoppingListUpdateAction
-
deepCopy
@Nullable static ShoppingListSetTextLineItemCustomTypeAction deepCopy(@Nullable ShoppingListSetTextLineItemCustomTypeAction template) factory method to create a deep copy of ShoppingListSetTextLineItemCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShoppingListSetTextLineItemCustomTypeAction- Returns:
- builder
-
builder
static ShoppingListSetTextLineItemCustomTypeActionBuilder builder(ShoppingListSetTextLineItemCustomTypeAction template) create builder for ShoppingListSetTextLineItemCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withShoppingListSetTextLineItemCustomTypeAction
default <T> T withShoppingListSetTextLineItemCustomTypeAction(Function<ShoppingListSetTextLineItemCustomTypeAction, 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<ShoppingListSetTextLineItemCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-