Class CartValueTypeBuilder

java.lang.Object
com.commercetools.api.models.project.CartValueTypeBuilder
All Implemented Interfaces:
Builder<CartValueType>

public class CartValueTypeBuilder extends Object implements Builder<CartValueType>
CartValueTypeBuilder
Example to create an instance using the builder pattern

     CartValueType cartValueType = CartValueType.builder()
             .build()
 
  • Constructor Details

    • CartValueTypeBuilder

      public CartValueTypeBuilder()
  • Method Details

    • build

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

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

      public static CartValueTypeBuilder of()
      factory method for an instance of CartValueTypeBuilder
      Returns:
      builder
    • of

      public static CartValueTypeBuilder of(CartValueType template)
      create builder for CartValueType instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder