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