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 as false to update only the Prices and TaxRates of the Line Items. Prices inside the variant are only updated if updateProductData is true.
      • Set as true to update the Product data (such as name, variant, productType, and Product Attributes) of the Line Items.
      Parameters:
      updateProductData - value to be set
      Returns:
      Builder
    • getUpdateProductData

      @Nullable public Boolean getUpdateProductData()
      • Leave empty or set as false to update only the Prices and TaxRates of the Line Items. Prices inside the variant are only updated if updateProductData is true.
      • Set as true to update the Product data (such as name, variant, productType, and Product Attributes) of the Line Items.
      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