Interface ProductTransitionStateAction

All Superinterfaces:
ProductUpdateAction, ResourceUpdateAction<ProductUpdateAction>

public interface ProductTransitionStateAction extends ProductUpdateAction

If the existing State has set transitions, there must be a direct transition to the new State. If transitions is not set, no validation is performed. Produces the ProductStateTransition Message.


Example to create an instance using the builder pattern

     ProductTransitionStateAction productTransitionStateAction = ProductTransitionStateAction.builder()
             .build()
 
  • Field Details

    • TRANSITION_STATE

      static final String TRANSITION_STATE
      discriminator value for ProductTransitionStateAction
      See Also:
  • Method Details

    • getState

      @Valid @Valid StateResourceIdentifier getState()

      The State to transition to. If there is no existing State, this must be an initial State.

      Returns:
      state
    • getForce

      Boolean getForce()

      If true, validations are disabled.

      Returns:
      force
    • setState

      void setState(StateResourceIdentifier state)

      The State to transition to. If there is no existing State, this must be an initial State.

      Parameters:
      state - value to be set
    • setForce

      void setForce(Boolean force)

      If true, validations are disabled.

      Parameters:
      force - value to be set
    • of

      factory method
      Returns:
      instance of ProductTransitionStateAction
    • of

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

      factory method to create a deep copy of ProductTransitionStateAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for ProductTransitionStateAction
      Returns:
      builder
    • builder

      create builder for ProductTransitionStateAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductTransitionStateAction

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