Class CartChangeTaxRoundingModeActionBuilder
java.lang.Object
com.commercetools.api.models.cart.CartChangeTaxRoundingModeActionBuilder
- All Implemented Interfaces:
Builder<CartChangeTaxRoundingModeAction>
public class CartChangeTaxRoundingModeActionBuilder
extends Object
implements Builder<CartChangeTaxRoundingModeAction>
CartChangeTaxRoundingModeActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartChangeTaxRoundingModeAction cartChangeTaxRoundingModeAction = CartChangeTaxRoundingModeAction.builder()
.taxRoundingMode(RoundingMode.HALF_EVEN)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartChangeTaxRoundingModeAction with checking for non-null required valuesbuilds CartChangeTaxRoundingModeAction without checking for non-null required valuesNew value to set.of()
factory method for an instance of CartChangeTaxRoundingModeActionBuilderof
(CartChangeTaxRoundingModeAction template) create builder for CartChangeTaxRoundingModeAction instancetaxRoundingMode
(RoundingMode taxRoundingMode) New value to set.
-
Constructor Details
-
CartChangeTaxRoundingModeActionBuilder
public CartChangeTaxRoundingModeActionBuilder()
-
-
Method Details
-
taxRoundingMode
New value to set.
- Parameters:
taxRoundingMode
- value to be set- Returns:
- Builder
-
getTaxRoundingMode
New value to set.
- Returns:
- taxRoundingMode
-
build
builds CartChangeTaxRoundingModeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartChangeTaxRoundingModeAction>
- Returns:
- CartChangeTaxRoundingModeAction
-
buildUnchecked
builds CartChangeTaxRoundingModeAction without checking for non-null required values- Returns:
- CartChangeTaxRoundingModeAction
-
of
factory method for an instance of CartChangeTaxRoundingModeActionBuilder- Returns:
- builder
-
of
create builder for CartChangeTaxRoundingModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-