Class CustomerCustomFieldChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.CustomerCustomFieldChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<CustomerCustomFieldChangedMessagePayload>
public class CustomerCustomFieldChangedMessagePayloadBuilder
extends Object
implements Builder<CustomerCustomFieldChangedMessagePayload>
CustomerCustomFieldChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerCustomFieldChangedMessagePayload customerCustomFieldChangedMessagePayload = CustomerCustomFieldChangedMessagePayload.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerCustomFieldChangedMessagePayload with checking for non-null required valuesbuilds CustomerCustomFieldChangedMessagePayload without checking for non-null required valuesgetName()
Name of the Custom Field that changed.CustomFieldValue based on the FieldType before the Set CustomField update action.getValue()
CustomFieldValue based on the FieldType after the Set CustomField update action.Name of the Custom Field that changed.of()
factory method for an instance of CustomerCustomFieldChangedMessagePayloadBuilderof
(CustomerCustomFieldChangedMessagePayload template) create builder for CustomerCustomFieldChangedMessagePayload instancepreviousValue
(Object previousValue) CustomFieldValue based on the FieldType before the Set CustomField update action.CustomFieldValue based on the FieldType after the Set CustomField update action.
-
Constructor Details
-
CustomerCustomFieldChangedMessagePayloadBuilder
public CustomerCustomFieldChangedMessagePayloadBuilder()
-
-
Method Details
-
name
Name of the Custom Field that changed.
- Parameters:
name
- value to be set- Returns:
- Builder
-
value
CustomFieldValue based on the FieldType after the Set CustomField update action.
- Parameters:
value
- value to be set- Returns:
- Builder
-
previousValue
public CustomerCustomFieldChangedMessagePayloadBuilder previousValue(@Nullable Object previousValue) 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- Returns:
- Builder
-
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
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
-
build
builds CustomerCustomFieldChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerCustomFieldChangedMessagePayload>
- Returns:
- CustomerCustomFieldChangedMessagePayload
-
buildUnchecked
builds CustomerCustomFieldChangedMessagePayload without checking for non-null required values- Returns:
- CustomerCustomFieldChangedMessagePayload
-
of
factory method for an instance of CustomerCustomFieldChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static CustomerCustomFieldChangedMessagePayloadBuilder of(CustomerCustomFieldChangedMessagePayload template) create builder for CustomerCustomFieldChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-