Class SetShippingMethodTaxCategoryChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetShippingMethodTaxCategoryChangeBuilder
- All Implemented Interfaces:
Builder<SetShippingMethodTaxCategoryChange>
public class SetShippingMethodTaxCategoryChangeBuilder
extends Object
implements Builder<SetShippingMethodTaxCategoryChange>
SetShippingMethodTaxCategoryChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetShippingMethodTaxCategoryChange setShippingMethodTaxCategoryChange = SetShippingMethodTaxCategoryChange.builder()
.change("{change}")
.taxMode(TaxMode.PLATFORM)
.previousValue(previousValueBuilder -> previousValueBuilder)
.nextValue(nextValueBuilder -> nextValueBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds SetShippingMethodTaxCategoryChange with checking for non-null required valuesbuilds SetShippingMethodTaxCategoryChange without checking for non-null required valuesset the value to the changevalue of change}Value after the change.Value before the change.Indicates how Tax Rates are set.Value after the change.nextValue(Function<ReferenceBuilder, Builder<? extends Reference>> builder) Value after the change.of()factory method for an instance of SetShippingMethodTaxCategoryChangeBuilderof(SetShippingMethodTaxCategoryChange template) create builder for SetShippingMethodTaxCategoryChange instancepreviousValue(Reference previousValue) Value before the change.previousValue(Function<ReferenceBuilder, Builder<? extends Reference>> builder) Value before the change.Indicates how Tax Rates are set.
-
Constructor Details
-
SetShippingMethodTaxCategoryChangeBuilder
public SetShippingMethodTaxCategoryChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change- value to be set- Returns:
- Builder
-
taxMode
Indicates how Tax Rates are set.
- Parameters:
taxMode- value to be set- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue- value to be set- Returns:
- Builder
-
previousValue
public SetShippingMethodTaxCategoryChangeBuilder previousValue(Function<ReferenceBuilder, Builder<? extends Reference>> builder) Value before the change.
- Parameters:
builder- function to build the previousValue value- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue- value to be set- Returns:
- Builder
-
nextValue
public SetShippingMethodTaxCategoryChangeBuilder nextValue(Function<ReferenceBuilder, Builder<? extends Reference>> builder) Value after the change.
- Parameters:
builder- function to build the nextValue value- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getTaxMode
Indicates how Tax Rates are set.
- Returns:
- taxMode
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
build
builds SetShippingMethodTaxCategoryChange with checking for non-null required values- Specified by:
buildin interfaceBuilder<SetShippingMethodTaxCategoryChange>- Returns:
- SetShippingMethodTaxCategoryChange
-
buildUnchecked
builds SetShippingMethodTaxCategoryChange without checking for non-null required values- Returns:
- SetShippingMethodTaxCategoryChange
-
of
factory method for an instance of SetShippingMethodTaxCategoryChangeBuilder- Returns:
- builder
-
of
public static SetShippingMethodTaxCategoryChangeBuilder of(SetShippingMethodTaxCategoryChange template) create builder for SetShippingMethodTaxCategoryChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-