Class StateSetTransitionsActionImpl

java.lang.Object
com.commercetools.api.models.state.StateSetTransitionsActionImpl
All Implemented Interfaces:
ResourceUpdateAction<StateUpdateAction>, StateSetTransitionsAction, StateUpdateAction, io.vrap.rmf.base.client.ModelBase

public class StateSetTransitionsActionImpl extends Object implements StateSetTransitionsAction, io.vrap.rmf.base.client.ModelBase
StateSetTransitionsAction
  • Constructor Details

  • Method Details

    • getAction

      public String getAction()
      Specified by:
      getAction in interface ResourceUpdateAction<StateUpdateAction>
      Specified by:
      getAction in interface StateUpdateAction
      Returns:
      action
    • getTransitions

      Value to set. If empty, any existing value will be removed.

      Possible transformations of the current State to other States of the same type (for example, Initial -> Shipped). When performing a transitionState update action and transitions is set, the currently referenced State must have a transition to the new State.

      If transitions is an empty list, it means the current State is a final State and no further transitions are allowed. If transitions is not set, the validation is turned off.

      When performing a transitionState update action, any other State of the same type can be transitioned to.

      Specified by:
      getTransitions in interface StateSetTransitionsAction
      Returns:
      transitions
    • setTransitions

      public void setTransitions(StateResourceIdentifier... transitions)
      Description copied from interface: StateSetTransitionsAction

      Value to set. If empty, any existing value will be removed.

      Possible transformations of the current State to other States of the same type (for example, Initial -> Shipped). When performing a transitionState update action and transitions is set, the currently referenced State must have a transition to the new State.

      If transitions is an empty list, it means the current State is a final State and no further transitions are allowed. If transitions is not set, the validation is turned off.

      When performing a transitionState update action, any other State of the same type can be transitioned to.

      Specified by:
      setTransitions in interface StateSetTransitionsAction
      Parameters:
      transitions - values to be set
    • setTransitions

      public void setTransitions(List<StateResourceIdentifier> transitions)
      Description copied from interface: StateSetTransitionsAction

      Value to set. If empty, any existing value will be removed.

      Possible transformations of the current State to other States of the same type (for example, Initial -> Shipped). When performing a transitionState update action and transitions is set, the currently referenced State must have a transition to the new State.

      If transitions is an empty list, it means the current State is a final State and no further transitions are allowed. If transitions is not set, the validation is turned off.

      When performing a transitionState update action, any other State of the same type can be transitioned to.

      Specified by:
      setTransitions in interface StateSetTransitionsAction
      Parameters:
      transitions - values to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object