Interface BusinessUnitTopLevelUnitSetMessage
- All Superinterfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,Message
,Versioned<Message>
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
BusinessUnitTopLevelUnitSetMessage businessUnitTopLevelUnitSetMessage = BusinessUnitTopLevelUnitSetMessage.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)
.topLevelUnit(topLevelUnitBuilder -> topLevelUnitBuilder)
.oldTopLevelUnit(oldTopLevelUnitBuilder -> oldTopLevelUnitBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitTopLevelUnitSetMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitTopLevelUnitSetMessagebuilder
(BusinessUnitTopLevelUnitSetMessage template) create builder for BusinessUnitTopLevelUnitSetMessage instancecopyDeep()
deepCopy
(BusinessUnitTopLevelUnitSetMessage template) factory method to create a deep copy of BusinessUnitTopLevelUnitSetMessage@NotNull @Valid BusinessUnitKeyReference
@NotNull @Valid BusinessUnitKeyReference
of()
factory methodof
(BusinessUnitTopLevelUnitSetMessage template) factory method to create a shallow copy BusinessUnitTopLevelUnitSetMessagevoid
setOldTopLevelUnit
(BusinessUnitKeyReference oldTopLevelUnit) void
setTopLevelUnit
(BusinessUnitKeyReference topLevelUnit) static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitTopLevelUnitSetMessage>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods 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, withMessage
-
Field Details
-
BUSINESS_UNIT_TOP_LEVEL_UNIT_SET
discriminator value for BusinessUnitTopLevelUnitSetMessage- 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 BusinessUnitTopLevelUnitSetMessage
-
of
factory method to create a shallow copy BusinessUnitTopLevelUnitSetMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
BusinessUnitTopLevelUnitSetMessage copyDeep()- Specified by:
copyDeep
in interfaceBaseResource
- Specified by:
copyDeep
in interfaceMessage
-
deepCopy
@Nullable static BusinessUnitTopLevelUnitSetMessage deepCopy(@Nullable BusinessUnitTopLevelUnitSetMessage template) factory method to create a deep copy of BusinessUnitTopLevelUnitSetMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitTopLevelUnitSetMessage- Returns:
- builder
-
builder
static BusinessUnitTopLevelUnitSetMessageBuilder builder(BusinessUnitTopLevelUnitSetMessage template) create builder for BusinessUnitTopLevelUnitSetMessage instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitTopLevelUnitSetMessage
default <T> T withBusinessUnitTopLevelUnitSetMessage(Function<BusinessUnitTopLevelUnitSetMessage, 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<BusinessUnitTopLevelUnitSetMessage> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-