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