Class ReviewStateTransitionMessagePayloadBuilder
- All Implemented Interfaces:
- Builder<ReviewStateTransitionMessagePayload>
Example to create an instance using the builder pattern
     ReviewStateTransitionMessagePayload reviewStateTransitionMessagePayload = ReviewStateTransitionMessagePayload.builder()
             .newState(newStateBuilder -> newStateBuilder)
             .oldIncludedInStatistics(true)
             .newIncludedInStatistics(true)
             .force(true)
             .build()
 - 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()builds ReviewStateTransitionMessagePayload with checking for non-null required valuesbuilds ReviewStateTransitionMessagePayload without checking for non-null required valuesWhether State transition validations were turned off during the Transition State update action.getForce()Whether State transition validations were turned off during the Transition State update action.Whether the new Review was taken into account in the rating statistics of the target after the state transition.Whether the old Review was taken into account in the rating statistics of the target before the state transition.newIncludedInStatistics(Boolean newIncludedInStatistics) Whether the new Review was taken into account in the rating statistics of the target after the state transition.newState(StateReference newState) of()factory method for an instance of ReviewStateTransitionMessagePayloadBuilderof(ReviewStateTransitionMessagePayload template) create builder for ReviewStateTransitionMessagePayload instanceoldIncludedInStatistics(Boolean oldIncludedInStatistics) Whether the old Review was taken into account in the rating statistics of the target before the state transition.oldState(StateReference oldState) target(Function<ReferenceBuilder, Builder<? extends Reference>> builder) 
- 
Constructor Details- 
ReviewStateTransitionMessagePayloadBuilderpublic ReviewStateTransitionMessagePayloadBuilder()
 
- 
- 
Method Details- 
oldStatepublic ReviewStateTransitionMessagePayloadBuilder oldState(Function<StateReferenceBuilder, StateReferenceBuilder> builder) State of the Review before the Transition State update action. - Parameters:
- builder- function to build the oldState value
- Returns:
- Builder
 
- 
withOldStatepublic ReviewStateTransitionMessagePayloadBuilder withOldState(Function<StateReferenceBuilder, StateReference> builder) State of the Review before the Transition State update action. - Parameters:
- builder- function to build the oldState value
- Returns:
- Builder
 
- 
oldStateState of the Review before the Transition State update action. - Parameters:
- oldState- value to be set
- Returns:
- Builder
 
- 
newStatepublic ReviewStateTransitionMessagePayloadBuilder newState(Function<StateReferenceBuilder, StateReferenceBuilder> builder) State of the Review after the Transition State update action. - Parameters:
- builder- function to build the newState value
- Returns:
- Builder
 
- 
withNewStatepublic ReviewStateTransitionMessagePayloadBuilder withNewState(Function<StateReferenceBuilder, StateReference> builder) State of the Review after the Transition State update action. - Parameters:
- builder- function to build the newState value
- Returns:
- Builder
 
- 
newStateState of the Review after the Transition State update action. - Parameters:
- newState- value to be set
- Returns:
- Builder
 
- 
oldIncludedInStatisticspublic ReviewStateTransitionMessagePayloadBuilder oldIncludedInStatistics(Boolean oldIncludedInStatistics) Whether the old Review was taken into account in the rating statistics of the target before the state transition. - Parameters:
- oldIncludedInStatistics- value to be set
- Returns:
- Builder
 
- 
newIncludedInStatisticspublic ReviewStateTransitionMessagePayloadBuilder newIncludedInStatistics(Boolean newIncludedInStatistics) Whether the new Review was taken into account in the rating statistics of the target after the state transition. - Parameters:
- newIncludedInStatistics- value to be set
- Returns:
- Builder
 
- 
target- Parameters:
- target- value to be set
- Returns:
- Builder
 
- 
targetpublic ReviewStateTransitionMessagePayloadBuilder target(Function<ReferenceBuilder, Builder<? extends Reference>> builder) - Parameters:
- builder- function to build the target value
- Returns:
- Builder
 
- 
forceWhether State transition validations were turned off during the Transition State update action. - Parameters:
- force- value to be set
- Returns:
- Builder
 
- 
getOldStateState of the Review before the Transition State update action. - Returns:
- oldState
 
- 
getNewStateState of the Review after the Transition State update action. - Returns:
- newState
 
- 
getOldIncludedInStatisticsWhether the old Review was taken into account in the rating statistics of the target before the state transition. - Returns:
- oldIncludedInStatistics
 
- 
getNewIncludedInStatisticsWhether the new Review was taken into account in the rating statistics of the target after the state transition. - Returns:
- newIncludedInStatistics
 
- 
getTarget- Returns:
- target
 
- 
getForceWhether State transition validations were turned off during the Transition State update action. - Returns:
- force
 
- 
buildbuilds ReviewStateTransitionMessagePayload with checking for non-null required values- Specified by:
- buildin interface- Builder<ReviewStateTransitionMessagePayload>
- Returns:
- ReviewStateTransitionMessagePayload
 
- 
buildUncheckedbuilds ReviewStateTransitionMessagePayload without checking for non-null required values- Returns:
- ReviewStateTransitionMessagePayload
 
- 
offactory method for an instance of ReviewStateTransitionMessagePayloadBuilder- Returns:
- builder
 
- 
ofpublic static ReviewStateTransitionMessagePayloadBuilder of(ReviewStateTransitionMessagePayload template) create builder for ReviewStateTransitionMessagePayload instance- Parameters:
- template- instance with prefilled values for the builder
- Returns:
- builder
 
 
-