Interface BusinessUnitTypeSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set Unit Type update action.
Example to create an instance using the builder pattern
BusinessUnitTypeSetMessagePayload businessUnitTypeSetMessagePayload = BusinessUnitTypeSetMessagePayload.builder()
.unitType(BusinessUnitType.COMPANY)
.oldUnitType(BusinessUnitType.COMPANY)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitTypeSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitTypeSetMessagePayloadbuilder
(BusinessUnitTypeSetMessagePayload template) create builder for BusinessUnitTypeSetMessagePayload instancecopyDeep()
deepCopy
(BusinessUnitTypeSetMessagePayload template) factory method to create a deep copy of BusinessUnitTypeSetMessagePayload@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.of()
factory methodof
(BusinessUnitTypeSetMessagePayload template) factory method to create a shallow copy BusinessUnitTypeSetMessagePayloadvoid
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<BusinessUnitTypeSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
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_TYPE_SET
discriminator value for BusinessUnitTypeSetMessagePayload- 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 BusinessUnitTypeSetMessagePayload
-
of
factory method to create a shallow copy BusinessUnitTypeSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
BusinessUnitTypeSetMessagePayload copyDeep()- Specified by:
copyDeep
in interfaceMessagePayload
-
deepCopy
@Nullable static BusinessUnitTypeSetMessagePayload deepCopy(@Nullable BusinessUnitTypeSetMessagePayload template) factory method to create a deep copy of BusinessUnitTypeSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitTypeSetMessagePayload- Returns:
- builder
-
builder
create builder for BusinessUnitTypeSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitTypeSetMessagePayload
default <T> T withBusinessUnitTypeSetMessagePayload(Function<BusinessUnitTypeSetMessagePayload, 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<BusinessUnitTypeSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-