Interface BusinessUnitTypeSetMessage

All Superinterfaces:
BaseResource, DomainResource<Message>, Identifiable<Message>, Message, Versioned<Message>

public interface BusinessUnitTypeSetMessage extends 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 Details

    • BUSINESS_UNIT_TYPE_SET

      static final String BUSINESS_UNIT_TYPE_SET
      discriminator value for BusinessUnitTypeSetMessage
      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 BusinessUnitTypeSetMessage
    • of

      factory method to create a shallow copy BusinessUnitTypeSetMessage
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      @Nullable static BusinessUnitTypeSetMessage deepCopy(@Nullable BusinessUnitTypeSetMessage template)
      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

      default <T> T withBusinessUnitTypeSetMessage(Function<BusinessUnitTypeSetMessage,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<BusinessUnitTypeSetMessage> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference