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