Class CartScoreTypeBuilder

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

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

     CartScoreType cartScoreType = CartScoreType.builder()
             .build()
 
  • Constructor Details

    • CartScoreTypeBuilder

      public CartScoreTypeBuilder()
  • Method Details

    • build

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

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

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

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