Interface BusinessUnitTypeSetMessage
- All Superinterfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,Message
,Versioned<Message>
Generated after a successful Set Unit Type update action.
Example to create an instance using the builder pattern
BusinessUnitTypeSetMessage businessUnitTypeSetMessage = BusinessUnitTypeSetMessage.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)
.unitType(BusinessUnitType.COMPANY)
.oldUnitType(BusinessUnitType.COMPANY)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitTypeSetMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitTypeSetMessagebuilder
(BusinessUnitTypeSetMessage template) create builder for BusinessUnitTypeSetMessage instancestatic BusinessUnitTypeSetMessage
deepCopy
(BusinessUnitTypeSetMessage template) factory method to create a deep copy of BusinessUnitTypeSetMessage@Valid BusinessUnitKeyReference
Parent unit of the Business Unit before the Set Unit Type update action.@NotNull BusinessUnitType
Type of the Business Unit before the Set Unit Type update action.@Valid BusinessUnitKeyReference
Parent unit of the Business Unit after the Set Unit Type update action.@NotNull BusinessUnitType
Type of the Business Unit after the Set Unit Type update action.static BusinessUnitTypeSetMessage
of()
factory methodstatic BusinessUnitTypeSetMessage
of
(BusinessUnitTypeSetMessage template) factory method to create a shallow copy BusinessUnitTypeSetMessagevoid
setOldParentUnit
(BusinessUnitKeyReference oldParentUnit) Parent unit of the Business Unit before the Set Unit Type update action.void
setOldUnitType
(BusinessUnitType oldUnitType) Type of the Business Unit before the Set Unit Type update action.void
setParentUnit
(BusinessUnitKeyReference parentUnit) Parent unit of the Business Unit after the Set Unit Type update action.void
setUnitType
(BusinessUnitType unitType) Type of the Business Unit after the Set Unit Type update action.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitTypeSetMessage>
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_TYPE_SET
discriminator value for BusinessUnitTypeSetMessage- See Also:
-
-
Method Details
-
getParentUnit
Parent unit of the Business Unit after the Set Unit Type update action.
- Returns:
- parentUnit
-
getOldParentUnit
Parent unit of the Business Unit before the Set Unit Type update action.
- Returns:
- oldParentUnit
-
getUnitType
Type of the Business Unit after the Set Unit Type update action.
- Returns:
- unitType
-
getOldUnitType
Type of the Business Unit before the Set Unit Type update action.
- Returns:
- oldUnitType
-
setParentUnit
Parent unit of the Business Unit after the Set Unit Type update action.
- Parameters:
parentUnit
- value to be set
-
setOldParentUnit
Parent unit of the Business Unit before the Set Unit Type update action.
- Parameters:
oldParentUnit
- value to be set
-
setUnitType
Type of the Business Unit after the Set Unit Type update action.
- Parameters:
unitType
- value to be set
-
setOldUnitType
Type of the Business Unit before the Set Unit Type update action.
- Parameters:
oldUnitType
- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitTypeSetMessage
-
of
factory method to create a shallow copy BusinessUnitTypeSetMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of BusinessUnitTypeSetMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitTypeSetMessage- Returns:
- builder
-
builder
create builder for BusinessUnitTypeSetMessage instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitTypeSetMessage
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-