Interface DeliveryCustomTypeRemovedMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin,OrderMessagePayload
Generated after removing a Custom Type from a Delivery using the Set Custom Type update action with empty parameters.
Example to create an instance using the builder pattern
DeliveryCustomTypeRemovedMessagePayload deliveryCustomTypeRemovedMessagePayload = DeliveryCustomTypeRemovedMessagePayload.builder()
.deliveryId("{deliveryId}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for DeliveryCustomTypeRemovedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for DeliveryCustomTypeRemovedMessagePayloadcreate builder for DeliveryCustomTypeRemovedMessagePayload instancecopyDeep()factory method to create a deep copy of DeliveryCustomTypeRemovedMessagePayload@NotNull StringUnique identifier of the Delivery.idof the Custom Type that was removed.of()factory methodof(DeliveryCustomTypeRemovedMessagePayload template) factory method to create a shallow copy DeliveryCustomTypeRemovedMessagePayloadvoidsetDeliveryId(String deliveryId) Unique identifier of the Delivery.voidsetPreviousTypeId(String previousTypeId) idof the Custom Type that was removed.static com.fasterxml.jackson.core.type.TypeReference<DeliveryCustomTypeRemovedMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithDeliveryCustomTypeRemovedMessagePayload(Function<DeliveryCustomTypeRemovedMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
asMethods inherited from interface com.commercetools.api.models.message.OrderMessagePayload
withOrderMessagePayload
-
Field Details
-
DELIVERY_CUSTOM_TYPE_REMOVED
discriminator value for DeliveryCustomTypeRemovedMessagePayload- See Also:
-
-
Method Details
-
getPreviousTypeId
String getPreviousTypeId()idof the Custom Type that was removed. Absent if there was no previous Custom Type present.- Returns:
- previousTypeId
-
getDeliveryId
Unique identifier of the Delivery.
- Returns:
- deliveryId
-
setPreviousTypeId
idof the Custom Type that was removed. Absent if there was no previous Custom Type present.- Parameters:
previousTypeId- value to be set
-
setDeliveryId
Unique identifier of the Delivery.
- Parameters:
deliveryId- value to be set
-
of
factory method- Returns:
- instance of DeliveryCustomTypeRemovedMessagePayload
-
of
factory method to create a shallow copy DeliveryCustomTypeRemovedMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
DeliveryCustomTypeRemovedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload- Specified by:
copyDeepin interfaceOrderMessagePayload
-
deepCopy
@Nullable static DeliveryCustomTypeRemovedMessagePayload deepCopy(@Nullable DeliveryCustomTypeRemovedMessagePayload template) factory method to create a deep copy of DeliveryCustomTypeRemovedMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DeliveryCustomTypeRemovedMessagePayload- Returns:
- builder
-
builder
static DeliveryCustomTypeRemovedMessagePayloadBuilder builder(DeliveryCustomTypeRemovedMessagePayload template) create builder for DeliveryCustomTypeRemovedMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withDeliveryCustomTypeRemovedMessagePayload
default <T> T withDeliveryCustomTypeRemovedMessagePayload(Function<DeliveryCustomTypeRemovedMessagePayload, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<DeliveryCustomTypeRemovedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-