Class CartSetCustomLineItemCustomFieldActionImpl
java.lang.Object
com.commercetools.api.models.cart.CartSetCustomLineItemCustomFieldActionImpl
- All Implemented Interfaces:
CartSetCustomLineItemCustomFieldAction
,CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CartSetCustomLineItemCustomFieldActionImpl
extends Object
implements CartSetCustomLineItemCustomFieldAction, io.vrap.rmf.base.client.ModelBase
CartSetCustomLineItemCustomFieldAction
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.cart.CartSetCustomLineItemCustomFieldAction
SET_CUSTOM_LINE_ITEM_CUSTOM_FIELD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
id
of the CustomLineItem to update.getName()
Name of the Custom Field.getValue()
Ifvalue
is absent ornull
, this field will be removed if it exists.int
hashCode()
void
setCustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.void
Name of the Custom Field.void
Ifvalue
is absent ornull
, this field will be removed if it exists.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.cart.CartSetCustomLineItemCustomFieldAction
withCartSetCustomLineItemCustomFieldAction
Methods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
withCartUpdateAction
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
CartSetCustomLineItemCustomFieldActionImpl
create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartUpdateAction>
- Returns:
- action
-
getCustomLineItemId
id
of the CustomLineItem to update.- Specified by:
getCustomLineItemId
in interfaceCartSetCustomLineItemCustomFieldAction
- Returns:
- customLineItemId
-
getName
Name of the Custom Field.
- Specified by:
getName
in interfaceCartSetCustomLineItemCustomFieldAction
- Returns:
- name
-
getValue
If
value
is absent ornull
, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Specified by:
getValue
in interfaceCartSetCustomLineItemCustomFieldAction
- Returns:
- value
-
setCustomLineItemId
Description copied from interface:CartSetCustomLineItemCustomFieldAction
id
of the CustomLineItem to update.- Specified by:
setCustomLineItemId
in interfaceCartSetCustomLineItemCustomFieldAction
- Parameters:
customLineItemId
- value to be set
-
setName
Description copied from interface:CartSetCustomLineItemCustomFieldAction
Name of the Custom Field.
- Specified by:
setName
in interfaceCartSetCustomLineItemCustomFieldAction
- Parameters:
name
- value to be set
-
setValue
Description copied from interface:CartSetCustomLineItemCustomFieldAction
If
value
is absent ornull
, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Specified by:
setValue
in interfaceCartSetCustomLineItemCustomFieldAction
- Parameters:
value
- value to be set
-
equals
-
hashCode
-