Class CartChangeTaxModeActionBuilder
java.lang.Object
com.commercetools.api.models.cart.CartChangeTaxModeActionBuilder
- All Implemented Interfaces:
Builder<CartChangeTaxModeAction>
public class CartChangeTaxModeActionBuilder
extends Object
implements Builder<CartChangeTaxModeAction>
CartChangeTaxModeActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartChangeTaxModeAction cartChangeTaxModeAction = CartChangeTaxModeAction.builder()
.taxMode(TaxMode.PLATFORM)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartChangeTaxModeAction with checking for non-null required valuesbuilds CartChangeTaxModeAction without checking for non-null required valuesThe new TaxMode.of()
factory method for an instance of CartChangeTaxModeActionBuilderof
(CartChangeTaxModeAction template) create builder for CartChangeTaxModeAction instanceThe new TaxMode.
-
Constructor Details
-
CartChangeTaxModeActionBuilder
public CartChangeTaxModeActionBuilder()
-
-
Method Details
-
taxMode
The new TaxMode.
- Parameters:
taxMode
- value to be set- Returns:
- Builder
-
getTaxMode
The new TaxMode.
- Returns:
- taxMode
-
build
builds CartChangeTaxModeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartChangeTaxModeAction>
- Returns:
- CartChangeTaxModeAction
-
buildUnchecked
builds CartChangeTaxModeAction without checking for non-null required values- Returns:
- CartChangeTaxModeAction
-
of
factory method for an instance of CartChangeTaxModeActionBuilder- Returns:
- builder
-
of
create builder for CartChangeTaxModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-