Class DeliveryCustomFieldAddedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.DeliveryCustomFieldAddedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<DeliveryCustomFieldAddedMessagePayload>
public class DeliveryCustomFieldAddedMessagePayloadBuilder
extends Object
implements Builder<DeliveryCustomFieldAddedMessagePayload>
DeliveryCustomFieldAddedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DeliveryCustomFieldAddedMessagePayload deliveryCustomFieldAddedMessagePayload = DeliveryCustomFieldAddedMessagePayload.builder()
.name("{name}")
.deliveryId("{deliveryId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DeliveryCustomFieldAddedMessagePayload with checking for non-null required valuesbuilds DeliveryCustomFieldAddedMessagePayload without checking for non-null required valuesdeliveryId
(String deliveryId) Unique identifier of the Delivery.Unique identifier of the Delivery.getName()
Name of the Custom Field that was added.getValue()
The added CustomFieldValue based on the FieldType.Name of the Custom Field that was added.of()
factory method for an instance of DeliveryCustomFieldAddedMessagePayloadBuilderof
(DeliveryCustomFieldAddedMessagePayload template) create builder for DeliveryCustomFieldAddedMessagePayload instanceThe added CustomFieldValue based on the FieldType.
-
Constructor Details
-
DeliveryCustomFieldAddedMessagePayloadBuilder
public DeliveryCustomFieldAddedMessagePayloadBuilder()
-
-
Method Details
-
name
Name of the Custom Field that was added.
- Parameters:
name
- value to be set- Returns:
- Builder
-
value
The added CustomFieldValue based on the FieldType.
- Parameters:
value
- value to be set- Returns:
- Builder
-
deliveryId
Unique identifier of the Delivery.
- Parameters:
deliveryId
- value to be set- Returns:
- Builder
-
getName
Name of the Custom Field that was added.
- Returns:
- name
-
getValue
The added CustomFieldValue based on the FieldType.
- Returns:
- value
-
getDeliveryId
Unique identifier of the Delivery.
- Returns:
- deliveryId
-
build
builds DeliveryCustomFieldAddedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<DeliveryCustomFieldAddedMessagePayload>
- Returns:
- DeliveryCustomFieldAddedMessagePayload
-
buildUnchecked
builds DeliveryCustomFieldAddedMessagePayload without checking for non-null required values- Returns:
- DeliveryCustomFieldAddedMessagePayload
-
of
factory method for an instance of DeliveryCustomFieldAddedMessagePayloadBuilder- Returns:
- builder
-
of
public static DeliveryCustomFieldAddedMessagePayloadBuilder of(DeliveryCustomFieldAddedMessagePayload template) create builder for DeliveryCustomFieldAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-