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