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 Stringdiscriminator value for BusinessUnitTypeSetMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for BusinessUnitTypeSetMessagebuilder(BusinessUnitTypeSetMessage template) create builder for BusinessUnitTypeSetMessage instancecopyDeep()static BusinessUnitTypeSetMessagedeepCopy(BusinessUnitTypeSetMessage template) factory method to create a deep copy of BusinessUnitTypeSetMessage@Valid BusinessUnitKeyReferenceParent unit of the Business Unit before the Set Unit Type update action.@NotNull BusinessUnitTypeType of the Business Unit before the Set Unit Type update action.@Valid BusinessUnitKeyReferenceParent unit of the Business Unit after the Set Unit Type update action.@NotNull BusinessUnitTypeType of the Business Unit after the Set Unit Type update action.static BusinessUnitTypeSetMessageof()factory methodstatic BusinessUnitTypeSetMessageof(BusinessUnitTypeSetMessage template) factory method to create a shallow copy BusinessUnitTypeSetMessagevoidsetOldParentUnit(BusinessUnitKeyReference oldParentUnit) Parent unit of the Business Unit before the Set Unit Type update action.voidsetOldUnitType(BusinessUnitType oldUnitType) Type of the Business Unit before the Set Unit Type update action.voidsetParentUnit(BusinessUnitKeyReference parentUnit) Parent unit of the Business Unit after the Set Unit Type update action.voidsetUnitType(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> 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_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
-
copyDeep
BusinessUnitTypeSetMessage copyDeep()- Specified by:
copyDeepin interfaceBaseResource- Specified by:
copyDeepin interfaceMessage
-
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
-