Class StateSetTransitionsActionBuilder
- All Implemented Interfaces:
Builder<StateSetTransitionsAction>
Example to create an instance using the builder pattern
StateSetTransitionsAction stateSetTransitionsAction = StateSetTransitionsAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionValue to set.build()
builds StateSetTransitionsAction with checking for non-null required valuesbuilds StateSetTransitionsAction without checking for non-null required valuesValue to set.of()
factory method for an instance of StateSetTransitionsActionBuilderof
(StateSetTransitionsAction template) create builder for StateSetTransitionsAction instanceplusTransitions
(StateResourceIdentifier... transitions) Value to set.Value to set.Value to set.transitions
(StateResourceIdentifier... transitions) Value to set.transitions
(List<StateResourceIdentifier> transitions) Value to set.Value to set.
-
Constructor Details
-
StateSetTransitionsActionBuilder
public StateSetTransitionsActionBuilder()
-
-
Method Details
-
transitions
public StateSetTransitionsActionBuilder transitions(@Nullable StateResourceIdentifier... transitions) 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 atransitionState
update action andtransitions
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. Iftransitions
is not set, the validation is turned off.When performing a
transitionState
update action, any other State of the sametype
can be transitioned to.- Parameters:
transitions
- value to be set- Returns:
- Builder
-
transitions
public StateSetTransitionsActionBuilder transitions(@Nullable List<StateResourceIdentifier> transitions) 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 atransitionState
update action andtransitions
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. Iftransitions
is not set, the validation is turned off.When performing a
transitionState
update action, any other State of the sametype
can be transitioned to.- Parameters:
transitions
- value to be set- Returns:
- Builder
-
plusTransitions
public StateSetTransitionsActionBuilder plusTransitions(@Nullable StateResourceIdentifier... transitions) 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 atransitionState
update action andtransitions
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. Iftransitions
is not set, the validation is turned off.When performing a
transitionState
update action, any other State of the sametype
can be transitioned to.- Parameters:
transitions
- value to be set- Returns:
- Builder
-
plusTransitions
public StateSetTransitionsActionBuilder plusTransitions(Function<StateResourceIdentifierBuilder, StateResourceIdentifierBuilder> builder) 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 atransitionState
update action andtransitions
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. Iftransitions
is not set, the validation is turned off.When performing a
transitionState
update action, any other State of the sametype
can be transitioned to.- Parameters:
builder
- function to build the transitions value- Returns:
- Builder
-
withTransitions
public StateSetTransitionsActionBuilder withTransitions(Function<StateResourceIdentifierBuilder, StateResourceIdentifierBuilder> builder) 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 atransitionState
update action andtransitions
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. Iftransitions
is not set, the validation is turned off.When performing a
transitionState
update action, any other State of the sametype
can be transitioned to.- Parameters:
builder
- function to build the transitions value- Returns:
- Builder
-
addTransitions
public StateSetTransitionsActionBuilder addTransitions(Function<StateResourceIdentifierBuilder, StateResourceIdentifier> builder) 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 atransitionState
update action andtransitions
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. Iftransitions
is not set, the validation is turned off.When performing a
transitionState
update action, any other State of the sametype
can be transitioned to.- Parameters:
builder
- function to build the transitions value- Returns:
- Builder
-
setTransitions
public StateSetTransitionsActionBuilder setTransitions(Function<StateResourceIdentifierBuilder, StateResourceIdentifier> builder) 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 atransitionState
update action andtransitions
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. Iftransitions
is not set, the validation is turned off.When performing a
transitionState
update action, any other State of the sametype
can be transitioned to.- Parameters:
builder
- function to build the transitions value- Returns:
- Builder
-
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 atransitionState
update action andtransitions
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. Iftransitions
is not set, the validation is turned off.When performing a
transitionState
update action, any other State of the sametype
can be transitioned to.- Returns:
- transitions
-
build
builds StateSetTransitionsAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StateSetTransitionsAction>
- Returns:
- StateSetTransitionsAction
-
buildUnchecked
builds StateSetTransitionsAction without checking for non-null required values- Returns:
- StateSetTransitionsAction
-
of
factory method for an instance of StateSetTransitionsActionBuilder- Returns:
- builder
-
of
create builder for StateSetTransitionsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-