Class OrderCustomFieldAddedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.OrderCustomFieldAddedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderCustomFieldAddedMessagePayload>
public class OrderCustomFieldAddedMessagePayloadBuilder
extends Object
implements Builder<OrderCustomFieldAddedMessagePayload>
OrderCustomFieldAddedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderCustomFieldAddedMessagePayload orderCustomFieldAddedMessagePayload = OrderCustomFieldAddedMessagePayload.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderCustomFieldAddedMessagePayload with checking for non-null required valuesbuilds OrderCustomFieldAddedMessagePayload without checking for non-null required valuesgetName()
Name of the Custom Field that was added.getValue()
The added CustomFieldValue based on the FieldType.Name of the Custom Field that was added.of()
factory method for an instance of OrderCustomFieldAddedMessagePayloadBuilderof
(OrderCustomFieldAddedMessagePayload template) create builder for OrderCustomFieldAddedMessagePayload instanceThe added CustomFieldValue based on the FieldType.
-
Constructor Details
-
OrderCustomFieldAddedMessagePayloadBuilder
public OrderCustomFieldAddedMessagePayloadBuilder()
-
-
Method Details
-
name
Name of the Custom Field that was added.
- Parameters:
name
- value to be set- Returns:
- Builder
-
value
The added CustomFieldValue based on the FieldType.
- Parameters:
value
- value to be set- Returns:
- Builder
-
getName
Name of the Custom Field that was added.
- Returns:
- name
-
getValue
The added CustomFieldValue based on the FieldType.
- Returns:
- value
-
build
builds OrderCustomFieldAddedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderCustomFieldAddedMessagePayload>
- Returns:
- OrderCustomFieldAddedMessagePayload
-
buildUnchecked
builds OrderCustomFieldAddedMessagePayload without checking for non-null required values- Returns:
- OrderCustomFieldAddedMessagePayload
-
of
factory method for an instance of OrderCustomFieldAddedMessagePayloadBuilder- Returns:
- builder
-
of
public static OrderCustomFieldAddedMessagePayloadBuilder of(OrderCustomFieldAddedMessagePayload template) create builder for OrderCustomFieldAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-