Class RecurringOrderCustomTypeSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.RecurringOrderCustomTypeSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<RecurringOrderCustomTypeSetMessagePayload>
public class RecurringOrderCustomTypeSetMessagePayloadBuilder
extends Object
implements Builder<RecurringOrderCustomTypeSetMessagePayload>
RecurringOrderCustomTypeSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
RecurringOrderCustomTypeSetMessagePayload recurringOrderCustomTypeSetMessagePayload = RecurringOrderCustomTypeSetMessagePayload.builder()
.customFields(customFieldsBuilder -> customFieldsBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds RecurringOrderCustomTypeSetMessagePayload with checking for non-null required valuesbuilds RecurringOrderCustomTypeSetMessagePayload 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 RecurringOrderCustomTypeSetMessagePayloadBuilderof
(RecurringOrderCustomTypeSetMessagePayload template) create builder for RecurringOrderCustomTypeSetMessagePayload instancepreviousTypeId
(String previousTypeId) id
of the previous Custom Type.The Custom Fields that have been set.
-
Constructor Details
-
RecurringOrderCustomTypeSetMessagePayloadBuilder
public RecurringOrderCustomTypeSetMessagePayloadBuilder()
-
-
Method Details
-
customFields
public RecurringOrderCustomTypeSetMessagePayloadBuilder customFields(Function<CustomFieldsBuilder, CustomFieldsBuilder> builder) The Custom Fields that have been set.
- Parameters:
builder
- function to build the customFields value- Returns:
- Builder
-
withCustomFields
public RecurringOrderCustomTypeSetMessagePayloadBuilder 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
public RecurringOrderCustomTypeSetMessagePayloadBuilder previousTypeId(@Nullable String 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 RecurringOrderCustomTypeSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<RecurringOrderCustomTypeSetMessagePayload>
- Returns:
- RecurringOrderCustomTypeSetMessagePayload
-
buildUnchecked
builds RecurringOrderCustomTypeSetMessagePayload without checking for non-null required values- Returns:
- RecurringOrderCustomTypeSetMessagePayload
-
of
factory method for an instance of RecurringOrderCustomTypeSetMessagePayloadBuilder- Returns:
- builder
-
of
public static RecurringOrderCustomTypeSetMessagePayloadBuilder of(RecurringOrderCustomTypeSetMessagePayload template) create builder for RecurringOrderCustomTypeSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-