Interface OrderBusinessUnitSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Set Business Unit update action on Orders or Set Business Unit update action on Order Edits.
Example to create an instance using the builder pattern
OrderBusinessUnitSetMessagePayload orderBusinessUnitSetMessagePayload = OrderBusinessUnitSetMessagePayload.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for OrderBusinessUnitSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderBusinessUnitSetMessagePayloadbuilder
(OrderBusinessUnitSetMessagePayload template) create builder for OrderBusinessUnitSetMessagePayload instancedeepCopy
(OrderBusinessUnitSetMessagePayload template) factory method to create a deep copy of OrderBusinessUnitSetMessagePayload@Valid BusinessUnitKeyReference
BusinessUnit on the Order after the Set Business Unit update action on Orders or Set Business Unit update action on Order Edits.@Valid BusinessUnitKeyReference
BusinessUnit on the Order before the Set Business Unit update action on Orders or Set Business Unit update action on Order Edits.of()
factory methodof
(OrderBusinessUnitSetMessagePayload template) factory method to create a shallow copy OrderBusinessUnitSetMessagePayloadvoid
setBusinessUnit
(BusinessUnitKeyReference businessUnit) BusinessUnit on the Order after the Set Business Unit update action on Orders or Set Business Unit update action on Order Edits.void
setOldbusinessUnit
(BusinessUnitKeyReference oldbusinessUnit) BusinessUnit on the Order before the Set Business Unit update action on Orders or Set Business Unit update action on Order Edits.static com.fasterxml.jackson.core.type.TypeReference<OrderBusinessUnitSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
Methods inherited from interface com.commercetools.api.models.message.OrderMessagePayload
withOrderMessagePayload
-
Field Details
-
ORDER_BUSINESS_UNIT_SET
discriminator value for OrderBusinessUnitSetMessagePayload- See Also:
-
-
Method Details
-
getBusinessUnit
BusinessUnit on the Order after the Set Business Unit update action on Orders or Set Business Unit update action on Order Edits.
- Returns:
- businessUnit
-
getOldbusinessUnit
BusinessUnit on the Order before the Set Business Unit update action on Orders or Set Business Unit update action on Order Edits.
- Returns:
- oldbusinessUnit
-
setBusinessUnit
BusinessUnit on the Order after the Set Business Unit update action on Orders or Set Business Unit update action on Order Edits.
- Parameters:
businessUnit
- value to be set
-
setOldbusinessUnit
BusinessUnit on the Order before the Set Business Unit update action on Orders or Set Business Unit update action on Order Edits.
- Parameters:
oldbusinessUnit
- value to be set
-
of
factory method- Returns:
- instance of OrderBusinessUnitSetMessagePayload
-
of
factory method to create a shallow copy OrderBusinessUnitSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderBusinessUnitSetMessagePayload deepCopy(@Nullable OrderBusinessUnitSetMessagePayload template) factory method to create a deep copy of OrderBusinessUnitSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderBusinessUnitSetMessagePayload- Returns:
- builder
-
builder
static OrderBusinessUnitSetMessagePayloadBuilder builder(OrderBusinessUnitSetMessagePayload template) create builder for OrderBusinessUnitSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderBusinessUnitSetMessagePayload
default <T> T withOrderBusinessUnitSetMessagePayload(Function<OrderBusinessUnitSetMessagePayload, 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<OrderBusinessUnitSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-