Package com.commercetools.api.models.me
Class MyCartRecalculateActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyCartRecalculateActionBuilder
- All Implemented Interfaces:
Builder<MyCartRecalculateAction>
public class MyCartRecalculateActionBuilder
extends Object
implements Builder<MyCartRecalculateAction>
MyCartRecalculateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyCartRecalculateAction myCartRecalculateAction = MyCartRecalculateAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyCartRecalculateAction with checking for non-null required valuesbuilds MyCartRecalculateAction without checking for non-null required valuesLeave empty or set tofalse
to only update the Prices and TaxRates of the Line Items. Set totrue
to update the Line Items' product data (likename
,variant
andproductType
) also.of()
factory method for an instance of MyCartRecalculateActionBuilderof
(MyCartRecalculateAction template) create builder for MyCartRecalculateAction instanceupdateProductData
(Boolean updateProductData) Leave empty or set tofalse
to only update the Prices and TaxRates of the Line Items. Set totrue
to update the Line Items' product data (likename
,variant
andproductType
) also.
-
Constructor Details
-
MyCartRecalculateActionBuilder
public MyCartRecalculateActionBuilder()
-
-
Method Details
-
updateProductData
- Leave empty or set to
false
to only update the Prices and TaxRates of the Line Items. - Set to
true
to update the Line Items' product data (likename
,variant
andproductType
) also.
- Parameters:
updateProductData
- value to be set- Returns:
- Builder
- Leave empty or set to
-
getUpdateProductData
- Leave empty or set to
false
to only update the Prices and TaxRates of the Line Items. - Set to
true
to update the Line Items' product data (likename
,variant
andproductType
) also.
- Returns:
- updateProductData
- Leave empty or set to
-
build
builds MyCartRecalculateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyCartRecalculateAction>
- Returns:
- MyCartRecalculateAction
-
buildUnchecked
builds MyCartRecalculateAction without checking for non-null required values- Returns:
- MyCartRecalculateAction
-
of
factory method for an instance of MyCartRecalculateActionBuilder- Returns:
- builder
-
of
create builder for MyCartRecalculateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-