Interface BusinessUnitParentUnitChangedMessagePayload
- All Superinterfaces:
MessagePayload
- All Known Implementing Classes:
BusinessUnitParentUnitChangedMessagePayloadImpl
Generated after a successful Change Parent Unit update action.
Example to create an instance using the builder pattern
BusinessUnitParentUnitChangedMessagePayload businessUnitParentUnitChangedMessagePayload = BusinessUnitParentUnitChangedMessagePayload.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitParentUnitChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitParentUnitChangedMessagePayloadcreate builder for BusinessUnitParentUnitChangedMessagePayload instancefactory method to create a deep copy of BusinessUnitParentUnitChangedMessagePayload@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 methodfactory method to create a shallow copy BusinessUnitParentUnitChangedMessagePayloadvoid
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<BusinessUnitParentUnitChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withBusinessUnitParentUnitChangedMessagePayload
(Function<BusinessUnitParentUnitChangedMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
-
Field Details
-
BUSINESS_UNIT_PARENT_UNIT_CHANGED
discriminator value for BusinessUnitParentUnitChangedMessagePayload- 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 BusinessUnitParentUnitChangedMessagePayload
-
of
static BusinessUnitParentUnitChangedMessagePayload of(BusinessUnitParentUnitChangedMessagePayload template) factory method to create a shallow copy BusinessUnitParentUnitChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitParentUnitChangedMessagePayload deepCopy(@Nullable BusinessUnitParentUnitChangedMessagePayload template) factory method to create a deep copy of BusinessUnitParentUnitChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitParentUnitChangedMessagePayload- Returns:
- builder
-
builder
static BusinessUnitParentUnitChangedMessagePayloadBuilder builder(BusinessUnitParentUnitChangedMessagePayload template) create builder for BusinessUnitParentUnitChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitParentUnitChangedMessagePayload
default <T> T withBusinessUnitParentUnitChangedMessagePayload(Function<BusinessUnitParentUnitChangedMessagePayload, 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<BusinessUnitParentUnitChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-