Class CartChangeTaxCalculationModeActionBuilder
java.lang.Object
com.commercetools.api.models.cart.CartChangeTaxCalculationModeActionBuilder
- All Implemented Interfaces:
Builder<CartChangeTaxCalculationModeAction>
public class CartChangeTaxCalculationModeActionBuilder
extends Object
implements Builder<CartChangeTaxCalculationModeAction>
CartChangeTaxCalculationModeActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartChangeTaxCalculationModeAction cartChangeTaxCalculationModeAction = CartChangeTaxCalculationModeAction.builder()
.taxCalculationMode(TaxCalculationMode.LINE_ITEM_LEVEL)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartChangeTaxCalculationModeAction with checking for non-null required valuesbuilds CartChangeTaxCalculationModeAction without checking for non-null required valuesNew value to set.of()
factory method for an instance of CartChangeTaxCalculationModeActionBuilderof
(CartChangeTaxCalculationModeAction template) create builder for CartChangeTaxCalculationModeAction instancetaxCalculationMode
(TaxCalculationMode taxCalculationMode) New value to set.
-
Constructor Details
-
CartChangeTaxCalculationModeActionBuilder
public CartChangeTaxCalculationModeActionBuilder()
-
-
Method Details
-
taxCalculationMode
public CartChangeTaxCalculationModeActionBuilder taxCalculationMode(TaxCalculationMode taxCalculationMode) New value to set.
- Parameters:
taxCalculationMode
- value to be set- Returns:
- Builder
-
getTaxCalculationMode
New value to set.
- Returns:
- taxCalculationMode
-
build
builds CartChangeTaxCalculationModeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartChangeTaxCalculationModeAction>
- Returns:
- CartChangeTaxCalculationModeAction
-
buildUnchecked
builds CartChangeTaxCalculationModeAction without checking for non-null required values- Returns:
- CartChangeTaxCalculationModeAction
-
of
factory method for an instance of CartChangeTaxCalculationModeActionBuilder- Returns:
- builder
-
of
public static CartChangeTaxCalculationModeActionBuilder of(CartChangeTaxCalculationModeAction template) create builder for CartChangeTaxCalculationModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-