Class CartValueTypeBuilder

java.lang.Object
com.commercetools.api.models.project.CartValueTypeBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<CartValueType>

public class CartValueTypeBuilder extends Object implements io.vrap.rmf.base.client.Builder<CartValueType>
CartValueTypeBuilder
Example to create an instance using the builder pattern

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

  • Method Details

    • build

      public CartValueType build()
      builds CartValueType with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<CartValueType>
      Returns:
      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