Interface ShoppingListSetTextLineItemCustomTypeAction
- All Superinterfaces:
ResourceUpdateAction<ShoppingListUpdateAction>,ShoppingListUpdateAction
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 FieldContainerObject containing 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) Object containing 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 tools.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
Object containing the Custom Fields fields for the TextLineItem.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- 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
Object containing the Custom Fields fields for the TextLineItem.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- 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 tools.jackson.core.type.TypeReference<ShoppingListSetTextLineItemCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-