Class CustomerAddressCustomFieldChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<CustomerAddressCustomFieldChangedMessagePayload>
Example to create an instance using the builder pattern
CustomerAddressCustomFieldChangedMessagePayload customerAddressCustomFieldChangedMessagePayload = CustomerAddressCustomFieldChangedMessagePayload.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionid
of the Address of which the Custom Field was changed.build()
builds CustomerAddressCustomFieldChangedMessagePayload with checking for non-null required valuesbuilds CustomerAddressCustomFieldChangedMessagePayload without checking for non-null required valuesid
of the Address of which the Custom Field was changed.getName()
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 CustomerAddressCustomFieldChangedMessagePayloadBuildercreate builder for CustomerAddressCustomFieldChangedMessagePayload 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
-
CustomerAddressCustomFieldChangedMessagePayloadBuilder
public CustomerAddressCustomFieldChangedMessagePayloadBuilder()
-
-
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 CustomerAddressCustomFieldChangedMessagePayloadBuilder 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 Address before, a Customer Address Custom Field Added Message is generated instead.- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
addressId
id
of the Address of which the Custom Field was changed.- Parameters:
addressId
- 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 Address before, a Customer Address Custom Field Added Message is generated instead.- Returns:
- previousValue
-
getAddressId
id
of the Address of which the Custom Field was changed.- Returns:
- addressId
-
build
builds CustomerAddressCustomFieldChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerAddressCustomFieldChangedMessagePayload>
- Returns:
- CustomerAddressCustomFieldChangedMessagePayload
-
buildUnchecked
builds CustomerAddressCustomFieldChangedMessagePayload without checking for non-null required values- Returns:
- CustomerAddressCustomFieldChangedMessagePayload
-
of
factory method for an instance of CustomerAddressCustomFieldChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static CustomerAddressCustomFieldChangedMessagePayloadBuilder of(CustomerAddressCustomFieldChangedMessagePayload template) create builder for CustomerAddressCustomFieldChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-