Class ChangeStagedQuoteStateChangeBuilder
java.lang.Object
com.commercetools.history.models.change.ChangeStagedQuoteStateChangeBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ChangeStagedQuoteStateChange>
public class ChangeStagedQuoteStateChangeBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<ChangeStagedQuoteStateChange>
ChangeStagedQuoteStateChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChangeStagedQuoteStateChange changeStagedQuoteStateChange = ChangeStagedQuoteStateChange.builder()
.change("{change}")
.previousValue(StagedQuoteState.IN_PROGRESS)
.nextValue(StagedQuoteState.IN_PROGRESS)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ChangeStagedQuoteStateChange with checking for non-null required valuesbuilds ChangeStagedQuoteStateChange without checking for non-null required valuesset the value to the changevalue of change}Value after the change.Value before the change.nextValue(StagedQuoteState nextValue) Value after the change.of()factory method for an instance of ChangeStagedQuoteStateChangeBuilderof(ChangeStagedQuoteStateChange template) create builder for ChangeStagedQuoteStateChange instancepreviousValue(StagedQuoteState previousValue) Value before the change.
-
Constructor Details
-
ChangeStagedQuoteStateChangeBuilder
public ChangeStagedQuoteStateChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change- value to be set- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue- value to be set- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
build
builds ChangeStagedQuoteStateChange with checking for non-null required values- Specified by:
buildin interfaceio.vrap.rmf.base.client.Builder<ChangeStagedQuoteStateChange>- Returns:
- ChangeStagedQuoteStateChange
-
buildUnchecked
builds ChangeStagedQuoteStateChange without checking for non-null required values- Returns:
- ChangeStagedQuoteStateChange
-
of
factory method for an instance of ChangeStagedQuoteStateChangeBuilder- Returns:
- builder
-
of
create builder for ChangeStagedQuoteStateChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-