Class SetOrderTaxedPriceChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetOrderTaxedPriceChangeBuilder
- All Implemented Interfaces:
Builder<SetOrderTaxedPriceChange>
public class SetOrderTaxedPriceChangeBuilder
extends Object
implements Builder<SetOrderTaxedPriceChange>
SetOrderTaxedPriceChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetOrderTaxedPriceChange setOrderTaxedPriceChange = SetOrderTaxedPriceChange.builder()
.change("{change}")
.previousValue(previousValueBuilder -> previousValueBuilder)
.nextValue(nextValueBuilder -> nextValueBuilder)
.taxMode(TaxMode.PLATFORM)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds SetOrderTaxedPriceChange with checking for non-null required valuesbuilds SetOrderTaxedPriceChange without checking for non-null required valuesset the value to the changevalue of change}Value after the change.Value before the change.value of taxMode}nextValue(TaxedItemPrice nextValue) Value after the change.Value after the change.of()factory method for an instance of SetOrderTaxedPriceChangeBuilderof(SetOrderTaxedPriceChange template) create builder for SetOrderTaxedPriceChange instancepreviousValue(TaxedItemPrice previousValue) Value before the change.Value before the change.set the value to the taxModeValue after the change.Value before the change.
-
Constructor Details
-
SetOrderTaxedPriceChangeBuilder
public SetOrderTaxedPriceChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change- value to be set- Returns:
- Builder
-
previousValue
public SetOrderTaxedPriceChangeBuilder previousValue(Function<TaxedItemPriceBuilder, TaxedItemPriceBuilder> builder) Value before the change.
- Parameters:
builder- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public SetOrderTaxedPriceChangeBuilder withPreviousValue(Function<TaxedItemPriceBuilder, TaxedItemPrice> builder) Value before the change.
- Parameters:
builder- function to build the previousValue value- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue- value to be set- Returns:
- Builder
-
nextValue
public SetOrderTaxedPriceChangeBuilder nextValue(Function<TaxedItemPriceBuilder, TaxedItemPriceBuilder> builder) Value after the change.
- Parameters:
builder- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public SetOrderTaxedPriceChangeBuilder withNextValue(Function<TaxedItemPriceBuilder, TaxedItemPrice> builder) Value after the change.
- Parameters:
builder- function to build the nextValue value- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue- value to be set- Returns:
- Builder
-
taxMode
set the value to the taxMode- Parameters:
taxMode- 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
-
getTaxMode
value of taxMode}- Returns:
- taxMode
-
build
builds SetOrderTaxedPriceChange with checking for non-null required values- Specified by:
buildin interfaceBuilder<SetOrderTaxedPriceChange>- Returns:
- SetOrderTaxedPriceChange
-
buildUnchecked
builds SetOrderTaxedPriceChange without checking for non-null required values- Returns:
- SetOrderTaxedPriceChange
-
of
factory method for an instance of SetOrderTaxedPriceChangeBuilder- Returns:
- builder
-
of
create builder for SetOrderTaxedPriceChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-