Class OrderCustomFieldChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.OrderCustomFieldChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderCustomFieldChangedMessagePayload>
public class OrderCustomFieldChangedMessagePayloadBuilder
extends Object
implements Builder<OrderCustomFieldChangedMessagePayload>
OrderCustomFieldChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderCustomFieldChangedMessagePayload orderCustomFieldChangedMessagePayload = OrderCustomFieldChangedMessagePayload.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderCustomFieldChangedMessagePayload with checking for non-null required valuesbuilds OrderCustomFieldChangedMessagePayload 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 OrderCustomFieldChangedMessagePayloadBuilderof
(OrderCustomFieldChangedMessagePayload template) create builder for OrderCustomFieldChangedMessagePayload 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
-
OrderCustomFieldChangedMessagePayloadBuilder
public OrderCustomFieldChangedMessagePayloadBuilder()
-
-
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
CustomFieldValue based on the FieldType before the Set CustomField update action. When there has not been a Custom Field with the
name
on the Order before, an Order 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 Order before, an Order Custom Field Added Message is generated instead.- Returns:
- previousValue
-
build
builds OrderCustomFieldChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderCustomFieldChangedMessagePayload>
- Returns:
- OrderCustomFieldChangedMessagePayload
-
buildUnchecked
builds OrderCustomFieldChangedMessagePayload without checking for non-null required values- Returns:
- OrderCustomFieldChangedMessagePayload
-
of
factory method for an instance of OrderCustomFieldChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static OrderCustomFieldChangedMessagePayloadBuilder of(OrderCustomFieldChangedMessagePayload template) create builder for OrderCustomFieldChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-