Interface CustomerCustomFieldChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after changing an existing Custom Field on a Customer using the Set CustomField update action.
Example to create an instance using the builder pattern
CustomerCustomFieldChangedMessagePayload customerCustomFieldChangedMessagePayload = CustomerCustomFieldChangedMessagePayload.builder()
.name("{name}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerCustomFieldChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerCustomFieldChangedMessagePayloadcreate builder for CustomerCustomFieldChangedMessagePayload instancecopyDeep()
factory method to create a deep copy of CustomerCustomFieldChangedMessagePayload@NotNull String
getName()
Name of the Custom Field that changed.@NotNull Object
getValue()
of()
factory methodof
(CustomerCustomFieldChangedMessagePayload template) factory method to create a shallow copy CustomerCustomFieldChangedMessagePayloadvoid
Name of the Custom Field that changed.void
setPreviousValue
(Object previousValue) void
static com.fasterxml.jackson.core.type.TypeReference<CustomerCustomFieldChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomerCustomFieldChangedMessagePayload
(Function<CustomerCustomFieldChangedMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
CUSTOMER_CUSTOM_FIELD_CHANGED
discriminator value for CustomerCustomFieldChangedMessagePayload- See Also:
-
-
Method Details
-
getName
Name of the Custom Field that changed.
- Returns:
- name
-
getValue
CustomFieldValue based on the FieldType after the Set CustomField update action.
- Returns:
- value
-
getPreviousValue
Object getPreviousValue()CustomFieldValue based on the FieldType before the Set CustomField update action. When there has not been a Custom Field with the
name
on the Customer before, a Customer Custom Field Added Message is generated instead.- Returns:
- previousValue
-
setName
Name of the Custom Field that changed.
- Parameters:
name
- value to be set
-
setValue
CustomFieldValue based on the FieldType after the Set CustomField update action.
- Parameters:
value
- value to be set
-
setPreviousValue
CustomFieldValue based on the FieldType before the Set CustomField update action. When there has not been a Custom Field with the
name
on the Customer before, a Customer Custom Field Added Message is generated instead.- Parameters:
previousValue
- value to be set
-
of
factory method- Returns:
- instance of CustomerCustomFieldChangedMessagePayload
-
of
static CustomerCustomFieldChangedMessagePayload of(CustomerCustomFieldChangedMessagePayload template) factory method to create a shallow copy CustomerCustomFieldChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerCustomFieldChangedMessagePayload copyDeep()- Specified by:
copyDeep
in interfaceMessagePayload
-
deepCopy
@Nullable static CustomerCustomFieldChangedMessagePayload deepCopy(@Nullable CustomerCustomFieldChangedMessagePayload template) factory method to create a deep copy of CustomerCustomFieldChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerCustomFieldChangedMessagePayload- Returns:
- builder
-
builder
static CustomerCustomFieldChangedMessagePayloadBuilder builder(CustomerCustomFieldChangedMessagePayload template) create builder for CustomerCustomFieldChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerCustomFieldChangedMessagePayload
default <T> T withCustomerCustomFieldChangedMessagePayload(Function<CustomerCustomFieldChangedMessagePayload, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<CustomerCustomFieldChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-