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

     MyCartRecalculateAction myCartRecalculateAction = MyCartRecalculateAction.builder()
             .build()
 
  • Constructor Details

    • MyCartRecalculateActionBuilder

      public MyCartRecalculateActionBuilder()
  • Method Details

    • updateProductData

      public MyCartRecalculateActionBuilder updateProductData(@Nullable Boolean 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 (like name, variant and productType) also.
      Parameters:
      updateProductData - value to be set
      Returns:
      Builder
    • getUpdateProductData

      @Nullable public Boolean 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 (like name, variant and productType) also.
      Returns:
      updateProductData
    • build

      public MyCartRecalculateAction build()
      builds MyCartRecalculateAction with checking for non-null required values
      Specified by:
      build in interface Builder<MyCartRecalculateAction>
      Returns:
      MyCartRecalculateAction
    • buildUnchecked

      public MyCartRecalculateAction buildUnchecked()
      builds MyCartRecalculateAction without checking for non-null required values
      Returns:
      MyCartRecalculateAction
    • of

      public static MyCartRecalculateActionBuilder 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