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