Package com.commercetools.api.models.me
Class MyCustomerSetCustomFieldActionImpl
java.lang.Object
com.commercetools.api.models.me.MyCustomerSetCustomFieldActionImpl
- All Implemented Interfaces:
MyCustomerSetCustomFieldAction
,MyCustomerUpdateAction
,ResourceUpdateAction<MyCustomerUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class MyCustomerSetCustomFieldActionImpl
extends Object
implements MyCustomerSetCustomFieldAction, io.vrap.rmf.base.client.ModelBase
Adding a Custom Field to a Customer generates the CustomerCustomFieldAdded Message, removing one generates the CustomerCustomFieldRemoved Message, and updating an existing one generates the CustomerCustomFieldChanged Message.
-
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.me.MyCustomerSetCustomFieldAction
SET_CUSTOM_FIELD
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.me.MyCustomerSetCustomFieldAction
withMyCustomerSetCustomFieldAction
Methods inherited from interface com.commercetools.api.models.me.MyCustomerUpdateAction
withMyCustomerUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
MyCustomerSetCustomFieldActionImpl
public MyCustomerSetCustomFieldActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceMyCustomerUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<MyCustomerUpdateAction>
- Returns:
- action
-
getName
Name of the Custom Field.
- Specified by:
getName
in interfaceMyCustomerSetCustomFieldAction
- Returns:
- name
-
getValue
If
value
is absent ornull
, this field will be removed if it exists. Ifvalue
is provided, it is set for the field defined byname
. Trying to remove a field that does not exist will fail with an InvalidOperation error.- Specified by:
getValue
in interfaceMyCustomerSetCustomFieldAction
- Returns:
- value
-
setName
Description copied from interface:MyCustomerSetCustomFieldAction
Name of the Custom Field.
- Specified by:
setName
in interfaceMyCustomerSetCustomFieldAction
- Parameters:
name
- value to be set
-
setValue
Description copied from interface:MyCustomerSetCustomFieldAction
If
value
is absent ornull
, this field will be removed if it exists. Ifvalue
is provided, it is set for the field defined byname
. Trying to remove a field that does not exist will fail with an InvalidOperation error.- Specified by:
setValue
in interfaceMyCustomerSetCustomFieldAction
- Parameters:
value
- value to be set
-
equals
-
hashCode
public int hashCode()
-