Interface BusinessUnitParentChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Change Parent Unit update action.
Example to create an instance using the builder pattern
BusinessUnitParentChangedMessagePayload businessUnitParentChangedMessagePayload = BusinessUnitParentChangedMessagePayload.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitParentChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitParentChangedMessagePayloadcreate builder for BusinessUnitParentChangedMessagePayload instancefactory method to create a deep copy of BusinessUnitParentChangedMessagePayload@Valid BusinessUnitKeyReference
Parent unit of the Business Unit after the Change Parent Unit update action.@Valid BusinessUnitKeyReference
Parent unit of the Business Unit before the Change Parent Unit update action.of()
factory methodof
(BusinessUnitParentChangedMessagePayload template) factory method to create a shallow copy BusinessUnitParentChangedMessagePayloadvoid
setNewParentUnit
(BusinessUnitKeyReference newParentUnit) Parent unit of the Business Unit after the Change Parent Unit update action.void
setOldParentUnit
(BusinessUnitKeyReference oldParentUnit) Parent unit of the Business Unit before the Change Parent Unit update action.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitParentChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withBusinessUnitParentChangedMessagePayload
(Function<BusinessUnitParentChangedMessagePayload, T> helper) 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
-
Field Details
-
BUSINESS_UNIT_PARENT_CHANGED
discriminator value for BusinessUnitParentChangedMessagePayload- See Also:
-
-
Method Details
-
getOldParentUnit
Parent unit of the Business Unit before the Change Parent Unit update action.
- Returns:
- oldParentUnit
-
getNewParentUnit
Parent unit of the Business Unit after the Change Parent Unit update action.
- Returns:
- newParentUnit
-
setOldParentUnit
Parent unit of the Business Unit before the Change Parent Unit update action.
- Parameters:
oldParentUnit
- value to be set
-
setNewParentUnit
Parent unit of the Business Unit after the Change Parent Unit update action.
- Parameters:
newParentUnit
- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitParentChangedMessagePayload
-
of
factory method to create a shallow copy BusinessUnitParentChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitParentChangedMessagePayload deepCopy(@Nullable BusinessUnitParentChangedMessagePayload template) factory method to create a deep copy of BusinessUnitParentChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitParentChangedMessagePayload- Returns:
- builder
-
builder
static BusinessUnitParentChangedMessagePayloadBuilder builder(BusinessUnitParentChangedMessagePayload template) create builder for BusinessUnitParentChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitParentChangedMessagePayload
default <T> T withBusinessUnitParentChangedMessagePayload(Function<BusinessUnitParentChangedMessagePayload, 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<BusinessUnitParentChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-