Class CartSetLineItemCustomFieldActionImpl
java.lang.Object
com.commercetools.api.models.cart.CartSetLineItemCustomFieldActionImpl
- All Implemented Interfaces:
CartSetLineItemCustomFieldAction
,CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CartSetLineItemCustomFieldActionImpl
extends Object
implements CartSetLineItemCustomFieldAction, io.vrap.rmf.base.client.ModelBase
CartSetLineItemCustomFieldAction
-
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.CartSetLineItemCustomFieldAction
SET_LINE_ITEM_CUSTOM_FIELD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
id
of the LineItem to update.getName()
Name of the Custom Field.getValue()
Ifvalue
is absent ornull
, this field will be removed if it exists.int
hashCode()
void
setLineItemId
(String lineItemId) id
of the LineItem 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.CartSetLineItemCustomFieldAction
withCartSetLineItemCustomFieldAction
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
-
CartSetLineItemCustomFieldActionImpl
public CartSetLineItemCustomFieldActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartUpdateAction>
- Returns:
- action
-
getLineItemId
id
of the LineItem to update.- Specified by:
getLineItemId
in interfaceCartSetLineItemCustomFieldAction
- Returns:
- lineItemId
-
getName
Name of the Custom Field.
- Specified by:
getName
in interfaceCartSetLineItemCustomFieldAction
- 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 interfaceCartSetLineItemCustomFieldAction
- Returns:
- value
-
setLineItemId
Description copied from interface:CartSetLineItemCustomFieldAction
id
of the LineItem to update.- Specified by:
setLineItemId
in interfaceCartSetLineItemCustomFieldAction
- Parameters:
lineItemId
- value to be set
-
setName
Description copied from interface:CartSetLineItemCustomFieldAction
Name of the Custom Field.
- Specified by:
setName
in interfaceCartSetLineItemCustomFieldAction
- Parameters:
name
- value to be set
-
setValue
Description copied from interface:CartSetLineItemCustomFieldAction
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 interfaceCartSetLineItemCustomFieldAction
- Parameters:
value
- value to be set
-
equals
-
hashCode
-