Interface BusinessUnitTopLevelUnitSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated when a Business Unit topLevelUnit
is modified due to a hierarchy change after a successful Set Unit Type or Change Parent Unit update action.
Example to create an instance using the builder pattern
BusinessUnitTopLevelUnitSetMessagePayload businessUnitTopLevelUnitSetMessagePayload = BusinessUnitTopLevelUnitSetMessagePayload.builder()
.topLevelUnit(topLevelUnitBuilder -> topLevelUnitBuilder)
.oldTopLevelUnit(oldTopLevelUnitBuilder -> oldTopLevelUnitBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitTopLevelUnitSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitTopLevelUnitSetMessagePayloadcreate builder for BusinessUnitTopLevelUnitSetMessagePayload instancecopyDeep()
factory method to create a deep copy of BusinessUnitTopLevelUnitSetMessagePayload@NotNull @Valid BusinessUnitKeyReference
Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.@NotNull @Valid BusinessUnitKeyReference
Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.of()
factory methodof
(BusinessUnitTopLevelUnitSetMessagePayload template) factory method to create a shallow copy BusinessUnitTopLevelUnitSetMessagePayloadvoid
setOldTopLevelUnit
(BusinessUnitKeyReference oldTopLevelUnit) Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.void
setTopLevelUnit
(BusinessUnitKeyReference topLevelUnit) Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitTopLevelUnitSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withBusinessUnitTopLevelUnitSetMessagePayload
(Function<BusinessUnitTopLevelUnitSetMessagePayload, 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_TOP_LEVEL_UNIT_SET
discriminator value for BusinessUnitTopLevelUnitSetMessagePayload- See Also:
-
-
Method Details
-
getTopLevelUnit
Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.
- Returns:
- topLevelUnit
-
getOldTopLevelUnit
Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.
- Returns:
- oldTopLevelUnit
-
setTopLevelUnit
Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.
- Parameters:
topLevelUnit
- value to be set
-
setOldTopLevelUnit
Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.
- Parameters:
oldTopLevelUnit
- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitTopLevelUnitSetMessagePayload
-
of
static BusinessUnitTopLevelUnitSetMessagePayload of(BusinessUnitTopLevelUnitSetMessagePayload template) factory method to create a shallow copy BusinessUnitTopLevelUnitSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
BusinessUnitTopLevelUnitSetMessagePayload copyDeep()- Specified by:
copyDeep
in interfaceMessagePayload
-
deepCopy
@Nullable static BusinessUnitTopLevelUnitSetMessagePayload deepCopy(@Nullable BusinessUnitTopLevelUnitSetMessagePayload template) factory method to create a deep copy of BusinessUnitTopLevelUnitSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitTopLevelUnitSetMessagePayload- Returns:
- builder
-
builder
static BusinessUnitTopLevelUnitSetMessagePayloadBuilder builder(BusinessUnitTopLevelUnitSetMessagePayload template) create builder for BusinessUnitTopLevelUnitSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitTopLevelUnitSetMessagePayload
default <T> T withBusinessUnitTopLevelUnitSetMessagePayload(Function<BusinessUnitTopLevelUnitSetMessagePayload, 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<BusinessUnitTopLevelUnitSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-