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