Class DeliveryCustomFieldRemovedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.DeliveryCustomFieldRemovedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<DeliveryCustomFieldRemovedMessagePayload>
public class DeliveryCustomFieldRemovedMessagePayloadBuilder
extends Object
implements Builder<DeliveryCustomFieldRemovedMessagePayload>
DeliveryCustomFieldRemovedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DeliveryCustomFieldRemovedMessagePayload deliveryCustomFieldRemovedMessagePayload = DeliveryCustomFieldRemovedMessagePayload.builder()
.name("{name}")
.deliveryId("{deliveryId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DeliveryCustomFieldRemovedMessagePayload with checking for non-null required valuesbuilds DeliveryCustomFieldRemovedMessagePayload 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 removed.Name of the Custom Field that was removed.of()
factory method for an instance of DeliveryCustomFieldRemovedMessagePayloadBuilderof
(DeliveryCustomFieldRemovedMessagePayload template) create builder for DeliveryCustomFieldRemovedMessagePayload instance
-
Constructor Details
-
DeliveryCustomFieldRemovedMessagePayloadBuilder
public DeliveryCustomFieldRemovedMessagePayloadBuilder()
-
-
Method Details
-
name
Name of the Custom Field that was removed.
- Parameters:
name
- 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 removed.
- Returns:
- name
-
getDeliveryId
Unique identifier of the Delivery.
- Returns:
- deliveryId
-
build
builds DeliveryCustomFieldRemovedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<DeliveryCustomFieldRemovedMessagePayload>
- Returns:
- DeliveryCustomFieldRemovedMessagePayload
-
buildUnchecked
builds DeliveryCustomFieldRemovedMessagePayload without checking for non-null required values- Returns:
- DeliveryCustomFieldRemovedMessagePayload
-
of
factory method for an instance of DeliveryCustomFieldRemovedMessagePayloadBuilder- Returns:
- builder
-
of
public static DeliveryCustomFieldRemovedMessagePayloadBuilder of(DeliveryCustomFieldRemovedMessagePayload template) create builder for DeliveryCustomFieldRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-