Class CustomerSetCustomFieldActionImpl
java.lang.Object
com.commercetools.api.models.customer.CustomerSetCustomFieldActionImpl
- All Implemented Interfaces:
CustomerSetCustomFieldAction
,CustomerUpdateAction
,ResourceUpdateAction<CustomerUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CustomerSetCustomFieldActionImpl
extends Object
implements CustomerSetCustomFieldAction, 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.customer.CustomerSetCustomFieldAction
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 com.commercetools.api.models.customer.CustomerSetCustomFieldAction
withCustomerSetCustomFieldAction
Methods inherited from interface com.commercetools.api.models.customer.CustomerUpdateAction
withCustomerUpdateAction
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
CustomerSetCustomFieldActionImpl
public CustomerSetCustomFieldActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCustomerUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CustomerUpdateAction>
- Returns:
- action
-
getName
Name of the Custom Field.
- Specified by:
getName
in interfaceCustomerSetCustomFieldAction
- 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 interfaceCustomerSetCustomFieldAction
- Returns:
- value
-
setName
Description copied from interface:CustomerSetCustomFieldAction
Name of the Custom Field.
- Specified by:
setName
in interfaceCustomerSetCustomFieldAction
- Parameters:
name
- value to be set
-
setValue
Description copied from interface:CustomerSetCustomFieldAction
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 interfaceCustomerSetCustomFieldAction
- Parameters:
value
- value to be set
-
equals
-
hashCode
public int hashCode()
-