Interface OrderBusinessUnitSetMessage
- All Superinterfaces:
BaseResource,DomainResource<Message>,Identifiable<Message>,Message,OrderMessage,Versioned<Message>
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
OrderBusinessUnitSetMessage orderBusinessUnitSetMessage = OrderBusinessUnitSetMessage.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.sequenceNumber(0.3)
.resource(resourceBuilder -> resourceBuilder)
.resourceVersion(0.3)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for OrderBusinessUnitSetMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for OrderBusinessUnitSetMessagebuilder(OrderBusinessUnitSetMessage template) create builder for OrderBusinessUnitSetMessage instancecopyDeep()static OrderBusinessUnitSetMessagedeepCopy(OrderBusinessUnitSetMessage template) factory method to create a deep copy of OrderBusinessUnitSetMessage@Valid BusinessUnitKeyReferenceBusinessUnit on the Order after the Set Business Unit update action on Orders or Set Business Unit update action on Order Edits.@Valid BusinessUnitKeyReferenceBusinessUnit on the Order before the Set Business Unit update action on Orders or Set Business Unit update action on Order Edits.static OrderBusinessUnitSetMessageof()factory methodstatic OrderBusinessUnitSetMessageof(OrderBusinessUnitSetMessage template) factory method to create a shallow copy OrderBusinessUnitSetMessagevoidsetBusinessUnit(BusinessUnitKeyReference businessUnit) BusinessUnit on the Order after the Set Business Unit update action on Orders or Set Business Unit update action on Order Edits.voidsetOldbusinessUnit(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<OrderBusinessUnitSetMessage>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.DomainResource
getMethods inherited from interface com.commercetools.api.models.message.Message
getCreatedAt, getCreatedBy, getId, getLastModifiedAt, getLastModifiedBy, getResource, getResourceUserProvidedIdentifiers, getResourceVersion, getSequenceNumber, getType, getVersion, setCreatedAt, setCreatedBy, setId, setLastModifiedAt, setLastModifiedBy, setResource, setResourceUserProvidedIdentifiers, setResourceVersion, setSequenceNumber, setVersion, withMessageMethods inherited from interface com.commercetools.api.models.message.OrderMessage
withOrderMessage
-
Field Details
-
ORDER_BUSINESS_UNIT_SET
discriminator value for OrderBusinessUnitSetMessage- 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 OrderBusinessUnitSetMessage
-
of
factory method to create a shallow copy OrderBusinessUnitSetMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
OrderBusinessUnitSetMessage copyDeep()- Specified by:
copyDeepin interfaceBaseResource- Specified by:
copyDeepin interfaceMessage- Specified by:
copyDeepin interfaceOrderMessage
-
deepCopy
@Nullable static OrderBusinessUnitSetMessage deepCopy(@Nullable OrderBusinessUnitSetMessage template) factory method to create a deep copy of OrderBusinessUnitSetMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderBusinessUnitSetMessage- Returns:
- builder
-
builder
create builder for OrderBusinessUnitSetMessage instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withOrderBusinessUnitSetMessage
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-