Class CustomerSetAddressCustomFieldActionImpl
- All Implemented Interfaces:
CustomerSetAddressCustomFieldAction
,CustomerUpdateAction
,ResourceUpdateAction<CustomerUpdateAction>
,io.vrap.rmf.base.client.ModelBase
Adding a Custom Field to an Address of a Customer generates the CustomerAddressCustomFieldAdded Message, removing one generates the CustomerAddressCustomFieldRemoved Message, and updating an existing one generates the CustomerAddressCustomFieldChanged 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.CustomerSetAddressCustomFieldAction
SET_ADDRESS_CUSTOM_FIELD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
User-defined unique identifier of the Address to be updated.getName()
Name of the Custom Field.getValue()
Ifvalue
is absent ornull
, this field will be removed if it exists.int
hashCode()
void
setAddressId
(String addressId) User-defined unique identifier of the Address to be updated.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.customer.CustomerSetAddressCustomFieldAction
withCustomerSetAddressCustomFieldAction
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
-
CustomerSetAddressCustomFieldActionImpl
public CustomerSetAddressCustomFieldActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCustomerUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CustomerUpdateAction>
- Returns:
- action
-
getAddressId
User-defined unique identifier of the Address to be updated.
- Specified by:
getAddressId
in interfaceCustomerSetAddressCustomFieldAction
- Returns:
- addressId
-
getName
Name of the Custom Field.
- Specified by:
getName
in interfaceCustomerSetAddressCustomFieldAction
- 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 interfaceCustomerSetAddressCustomFieldAction
- Returns:
- value
-
setAddressId
Description copied from interface:CustomerSetAddressCustomFieldAction
User-defined unique identifier of the Address to be updated.
- Specified by:
setAddressId
in interfaceCustomerSetAddressCustomFieldAction
- Parameters:
addressId
- value to be set
-
setName
Description copied from interface:CustomerSetAddressCustomFieldAction
Name of the Custom Field.
- Specified by:
setName
in interfaceCustomerSetAddressCustomFieldAction
- Parameters:
name
- value to be set
-
setValue
Description copied from interface:CustomerSetAddressCustomFieldAction
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 interfaceCustomerSetAddressCustomFieldAction
- Parameters:
value
- value to be set
-
equals
-
hashCode
public int hashCode()
-