Class ChangeTaxCalculationModeChangeBuilder
java.lang.Object
com.commercetools.history.models.change.ChangeTaxCalculationModeChangeBuilder
- All Implemented Interfaces:
Builder<ChangeTaxCalculationModeChange>
public class ChangeTaxCalculationModeChangeBuilder
extends Object
implements Builder<ChangeTaxCalculationModeChange>
ChangeTaxCalculationModeChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChangeTaxCalculationModeChange changeTaxCalculationModeChange = ChangeTaxCalculationModeChange.builder()
.change("{change}")
.previousValue(TaxCalculationMode.LINE_ITEM_LEVEL)
.nextValue(TaxCalculationMode.LINE_ITEM_LEVEL)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ChangeTaxCalculationModeChange with checking for non-null required valuesbuilds ChangeTaxCalculationModeChange without checking for non-null required valuesset the value to the changevalue of change}Value after the change.Value before the change.nextValue
(TaxCalculationMode nextValue) Value after the change.of()
factory method for an instance of ChangeTaxCalculationModeChangeBuilderof
(ChangeTaxCalculationModeChange template) create builder for ChangeTaxCalculationModeChange instancepreviousValue
(TaxCalculationMode previousValue) Value before the change.
-
Constructor Details
-
ChangeTaxCalculationModeChangeBuilder
public ChangeTaxCalculationModeChangeBuilder()
-
-
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 ChangeTaxCalculationModeChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChangeTaxCalculationModeChange>
- Returns:
- ChangeTaxCalculationModeChange
-
buildUnchecked
builds ChangeTaxCalculationModeChange without checking for non-null required values- Returns:
- ChangeTaxCalculationModeChange
-
of
factory method for an instance of ChangeTaxCalculationModeChangeBuilder- Returns:
- builder
-
of
create builder for ChangeTaxCalculationModeChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-