Class OrderCustomTypeSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.OrderCustomTypeSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderCustomTypeSetMessagePayload>
public class OrderCustomTypeSetMessagePayloadBuilder
extends Object
implements Builder<OrderCustomTypeSetMessagePayload>
OrderCustomTypeSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderCustomTypeSetMessagePayload orderCustomTypeSetMessagePayload = OrderCustomTypeSetMessagePayload.builder()
.customFields(customFieldsBuilder -> customFieldsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderCustomTypeSetMessagePayload with checking for non-null required valuesbuilds OrderCustomTypeSetMessagePayload without checking for non-null required valuescustomFields
(CustomFields customFields) The Custom Fields that have been set.The Custom Fields that have been set.The Custom Fields that have been set.id
of the previous Custom Type.of()
factory method for an instance of OrderCustomTypeSetMessagePayloadBuilderof
(OrderCustomTypeSetMessagePayload template) create builder for OrderCustomTypeSetMessagePayload instancepreviousTypeId
(String previousTypeId) id
of the previous Custom Type.The Custom Fields that have been set.
-
Constructor Details
-
OrderCustomTypeSetMessagePayloadBuilder
public OrderCustomTypeSetMessagePayloadBuilder()
-
-
Method Details
-
customFields
public OrderCustomTypeSetMessagePayloadBuilder customFields(Function<CustomFieldsBuilder, CustomFieldsBuilder> builder) The Custom Fields that have been set.
- Parameters:
builder
- function to build the customFields value- Returns:
- Builder
-
withCustomFields
public OrderCustomTypeSetMessagePayloadBuilder withCustomFields(Function<CustomFieldsBuilder, CustomFields> builder) The Custom Fields that have been set.
- Parameters:
builder
- function to build the customFields value- Returns:
- Builder
-
customFields
The Custom Fields that have been set.
- Parameters:
customFields
- value to be set- Returns:
- Builder
-
previousTypeId
id
of the previous Custom Type. Absent if there was no previous Custom Type present.- Parameters:
previousTypeId
- value to be set- Returns:
- Builder
-
getCustomFields
The Custom Fields that have been set.
- Returns:
- customFields
-
getPreviousTypeId
id
of the previous Custom Type. Absent if there was no previous Custom Type present.- Returns:
- previousTypeId
-
build
builds OrderCustomTypeSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderCustomTypeSetMessagePayload>
- Returns:
- OrderCustomTypeSetMessagePayload
-
buildUnchecked
builds OrderCustomTypeSetMessagePayload without checking for non-null required values- Returns:
- OrderCustomTypeSetMessagePayload
-
of
factory method for an instance of OrderCustomTypeSetMessagePayloadBuilder- Returns:
- builder
-
of
create builder for OrderCustomTypeSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-