Interface BusinessUnitParentChangedMessage
- All Superinterfaces:
BaseResource,DomainResource<Message>,Identifiable<Message>,Message,Versioned<Message>
Generated after a successful Change Parent Unit update action.
Example to create an instance using the builder pattern
BusinessUnitParentChangedMessage businessUnitParentChangedMessage = BusinessUnitParentChangedMessage.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 BusinessUnitParentChangedMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for BusinessUnitParentChangedMessagebuilder(BusinessUnitParentChangedMessage template) create builder for BusinessUnitParentChangedMessage instancecopyDeep()deepCopy(BusinessUnitParentChangedMessage template) factory method to create a deep copy of BusinessUnitParentChangedMessage@Valid BusinessUnitKeyReferenceParent unit of the Business Unit after the Change Parent Unit update action.@Valid BusinessUnitKeyReferenceParent unit of the Business Unit before the Change Parent Unit update action.of()factory methodof(BusinessUnitParentChangedMessage template) factory method to create a shallow copy BusinessUnitParentChangedMessagevoidsetNewParentUnit(BusinessUnitKeyReference newParentUnit) Parent unit of the Business Unit after the Change Parent Unit update action.voidsetOldParentUnit(BusinessUnitKeyReference oldParentUnit) Parent unit of the Business Unit before the Change Parent Unit update action.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitParentChangedMessage>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, withMessage
-
Field Details
-
BUSINESS_UNIT_PARENT_CHANGED
discriminator value for BusinessUnitParentChangedMessage- 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 BusinessUnitParentChangedMessage
-
of
factory method to create a shallow copy BusinessUnitParentChangedMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
BusinessUnitParentChangedMessage copyDeep()- Specified by:
copyDeepin interfaceBaseResource- Specified by:
copyDeepin interfaceMessage
-
deepCopy
@Nullable static BusinessUnitParentChangedMessage deepCopy(@Nullable BusinessUnitParentChangedMessage template) factory method to create a deep copy of BusinessUnitParentChangedMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitParentChangedMessage- Returns:
- builder
-
builder
create builder for BusinessUnitParentChangedMessage instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitParentChangedMessage
default <T> T withBusinessUnitParentChangedMessage(Function<BusinessUnitParentChangedMessage, 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<BusinessUnitParentChangedMessage> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-