Interface BusinessUnitTypeSetMessagePayload

All Superinterfaces:
MessagePayload, MessagePayloadMixin

public interface BusinessUnitTypeSetMessagePayload extends MessagePayload

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 Details

    • BUSINESS_UNIT_TYPE_SET

      static final String BUSINESS_UNIT_TYPE_SET
      discriminator value for BusinessUnitTypeSetMessagePayload
      See Also:
  • Method Details

    • getParentUnit

      @Valid @Valid BusinessUnitKeyReference getParentUnit()

      Parent unit of the Business Unit after the Set Unit Type update action.

      Returns:
      parentUnit
    • getOldParentUnit

      @Valid @Valid BusinessUnitKeyReference getOldParentUnit()

      Parent unit of the Business Unit before the Set Unit Type update action.

      Returns:
      oldParentUnit
    • getUnitType

      @NotNull @NotNull BusinessUnitType getUnitType()

      Type of the Business Unit after the Set Unit Type update action.

      Returns:
      unitType
    • getOldUnitType

      @NotNull @NotNull BusinessUnitType getOldUnitType()

      Type of the Business Unit before the Set Unit Type update action.

      Returns:
      oldUnitType
    • setParentUnit

      void setParentUnit(BusinessUnitKeyReference parentUnit)

      Parent unit of the Business Unit after the Set Unit Type update action.

      Parameters:
      parentUnit - value to be set
    • setOldParentUnit

      void setOldParentUnit(BusinessUnitKeyReference oldParentUnit)

      Parent unit of the Business Unit before the Set Unit Type update action.

      Parameters:
      oldParentUnit - value to be set
    • setUnitType

      void setUnitType(BusinessUnitType unitType)

      Type of the Business Unit after the Set Unit Type update action.

      Parameters:
      unitType - value to be set
    • setOldUnitType

      void setOldUnitType(BusinessUnitType oldUnitType)

      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

      Specified by:
      copyDeep in interface MessagePayload
    • 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