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