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