Class DeliveryCustomFieldChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.DeliveryCustomFieldChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<DeliveryCustomFieldChangedMessagePayload>
public class DeliveryCustomFieldChangedMessagePayloadBuilder
extends Object
implements Builder<DeliveryCustomFieldChangedMessagePayload>
DeliveryCustomFieldChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DeliveryCustomFieldChangedMessagePayload deliveryCustomFieldChangedMessagePayload = DeliveryCustomFieldChangedMessagePayload.builder()
.name("{name}")
.deliveryId("{deliveryId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DeliveryCustomFieldChangedMessagePayload with checking for non-null required valuesbuilds DeliveryCustomFieldChangedMessagePayload without checking for non-null required valuesdeliveryId
(String deliveryId) Unique identifier of the Delivery.Unique identifier of the Delivery.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 DeliveryCustomFieldChangedMessagePayloadBuilderof
(DeliveryCustomFieldChangedMessagePayload template) create builder for DeliveryCustomFieldChangedMessagePayload 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
-
DeliveryCustomFieldChangedMessagePayloadBuilder
public DeliveryCustomFieldChangedMessagePayloadBuilder()
-
-
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 DeliveryCustomFieldChangedMessagePayloadBuilder 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 Delivery before, a Delivery Custom Field Added Message is generated instead.- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
deliveryId
Unique identifier of the Delivery.
- Parameters:
deliveryId
- 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 Delivery before, a Delivery Custom Field Added Message is generated instead.- Returns:
- previousValue
-
getDeliveryId
Unique identifier of the Delivery.
- Returns:
- deliveryId
-
build
builds DeliveryCustomFieldChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<DeliveryCustomFieldChangedMessagePayload>
- Returns:
- DeliveryCustomFieldChangedMessagePayload
-
buildUnchecked
builds DeliveryCustomFieldChangedMessagePayload without checking for non-null required values- Returns:
- DeliveryCustomFieldChangedMessagePayload
-
of
factory method for an instance of DeliveryCustomFieldChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static DeliveryCustomFieldChangedMessagePayloadBuilder of(DeliveryCustomFieldChangedMessagePayload template) create builder for DeliveryCustomFieldChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-