Class ReviewTransitionStateActionBuilder
- All Implemented Interfaces:
Builder<ReviewTransitionStateAction>
Example to create an instance using the builder pattern
ReviewTransitionStateAction reviewTransitionStateAction = ReviewTransitionStateAction.builder()
.state(stateBuilder -> stateBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ReviewTransitionStateAction with checking for non-null required valuesbuilds ReviewTransitionStateAction without checking for non-null required valuesSwitch validations on or off.getForce()
Switch validations on or off.getState()
Value to set.of()
factory method for an instance of ReviewTransitionStateActionBuilderof
(ReviewTransitionStateAction template) create builder for ReviewTransitionStateAction instancestate
(StateResourceIdentifier state) Value to set.Value to set.Value to set.
-
Constructor Details
-
ReviewTransitionStateActionBuilder
public ReviewTransitionStateActionBuilder()
-
-
Method Details
-
state
public ReviewTransitionStateActionBuilder state(Function<StateResourceIdentifierBuilder, StateResourceIdentifierBuilder> builder) Value to set. If there is no State yet, the new State must be an initial State. If the existing State has
transitions
set, there must be a direct transition to the new State. Iftransitions
is not set, no validation is performed. If the new State does not have the roleReviewIncludedInStatistics
, the Review is not taken into account in the ratings statistics of the target.- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
withState
public ReviewTransitionStateActionBuilder withState(Function<StateResourceIdentifierBuilder, StateResourceIdentifier> builder) Value to set. If there is no State yet, the new State must be an initial State. If the existing State has
transitions
set, there must be a direct transition to the new State. Iftransitions
is not set, no validation is performed. If the new State does not have the roleReviewIncludedInStatistics
, the Review is not taken into account in the ratings statistics of the target.- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
state
Value to set. If there is no State yet, the new State must be an initial State. If the existing State has
transitions
set, there must be a direct transition to the new State. Iftransitions
is not set, no validation is performed. If the new State does not have the roleReviewIncludedInStatistics
, the Review is not taken into account in the ratings statistics of the target.- Parameters:
state
- value to be set- Returns:
- Builder
-
force
Switch validations on or off.
- Parameters:
force
- value to be set- Returns:
- Builder
-
getState
Value to set. If there is no State yet, the new State must be an initial State. If the existing State has
transitions
set, there must be a direct transition to the new State. Iftransitions
is not set, no validation is performed. If the new State does not have the roleReviewIncludedInStatistics
, the Review is not taken into account in the ratings statistics of the target.- Returns:
- state
-
getForce
Switch validations on or off.
- Returns:
- force
-
build
builds ReviewTransitionStateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ReviewTransitionStateAction>
- Returns:
- ReviewTransitionStateAction
-
buildUnchecked
builds ReviewTransitionStateAction without checking for non-null required values- Returns:
- ReviewTransitionStateAction
-
of
factory method for an instance of ReviewTransitionStateActionBuilder- Returns:
- builder
-
of
create builder for ReviewTransitionStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-