Package com.commercetools.api.models.me
Interface MyShoppingListSetTextLineItemCustomTypeAction
- All Superinterfaces:
MyShoppingListUpdateAction
,ResourceUpdateAction<MyShoppingListUpdateAction>
MyShoppingListSetTextLineItemCustomTypeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyShoppingListSetTextLineItemCustomTypeAction myShoppingListSetTextLineItemCustomTypeAction = MyShoppingListSetTextLineItemCustomTypeAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for MyShoppingListSetTextLineItemCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyShoppingListSetTextLineItemCustomTypeActioncreate builder for MyShoppingListSetTextLineItemCustomTypeAction instancefactory method to create a deep copy of MyShoppingListSetTextLineItemCustomTypeAction@Valid FieldContainer
Sets the Custom Fields fields for the TextLineItem.Theid
of the TextLineItem to update.Thekey
of the TextLineItem to update.@Valid TypeResourceIdentifier
getType()
Defines the Type that extends the TextLineItem with Custom Fields.of()
factory methodfactory method to create a shallow copy MyShoppingListSetTextLineItemCustomTypeActionvoid
setFields
(FieldContainer fields) Sets the Custom Fields fields for the TextLineItem.void
setTextLineItemId
(String textLineItemId) Theid
of the TextLineItem to update.void
setTextLineItemKey
(String textLineItemKey) Thekey
of the TextLineItem to update.void
Defines the Type that extends the TextLineItem with Custom Fields.static com.fasterxml.jackson.core.type.TypeReference<MyShoppingListSetTextLineItemCustomTypeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMyShoppingListSetTextLineItemCustomTypeAction
(Function<MyShoppingListSetTextLineItemCustomTypeAction, 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_CUSTOM_TYPE
discriminator value for MyShoppingListSetTextLineItemCustomTypeAction- 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
-
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
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
-
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 MyShoppingListSetTextLineItemCustomTypeAction
-
of
static MyShoppingListSetTextLineItemCustomTypeAction of(MyShoppingListSetTextLineItemCustomTypeAction template) factory method to create a shallow copy MyShoppingListSetTextLineItemCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyShoppingListSetTextLineItemCustomTypeAction deepCopy(@Nullable MyShoppingListSetTextLineItemCustomTypeAction template) factory method to create a deep copy of MyShoppingListSetTextLineItemCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyShoppingListSetTextLineItemCustomTypeAction- Returns:
- builder
-
builder
static MyShoppingListSetTextLineItemCustomTypeActionBuilder builder(MyShoppingListSetTextLineItemCustomTypeAction template) create builder for MyShoppingListSetTextLineItemCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyShoppingListSetTextLineItemCustomTypeAction
default <T> T withMyShoppingListSetTextLineItemCustomTypeAction(Function<MyShoppingListSetTextLineItemCustomTypeAction, 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<MyShoppingListSetTextLineItemCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-