Class SetMinCartQuantityChangeBuilder

java.lang.Object
com.commercetools.history.models.change.SetMinCartQuantityChangeBuilder
All Implemented Interfaces:
Builder<SetMinCartQuantityChange>

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

     SetMinCartQuantityChange setMinCartQuantityChange = SetMinCartQuantityChange.builder()
             .change("{change}")
             .previousValue(1)
             .nextValue(1)
             .build()
 
  • Constructor Details

    • SetMinCartQuantityChangeBuilder

      public SetMinCartQuantityChangeBuilder()
  • Method Details

    • change

      public SetMinCartQuantityChangeBuilder change(String change)
      set the value to the change
      Parameters:
      change - value to be set
      Returns:
      Builder
    • previousValue

      public SetMinCartQuantityChangeBuilder previousValue(Integer previousValue)

      Value before the change.

      Parameters:
      previousValue - value to be set
      Returns:
      Builder
    • nextValue

      public SetMinCartQuantityChangeBuilder nextValue(Integer nextValue)

      Value after the change.

      Parameters:
      nextValue - value to be set
      Returns:
      Builder
    • getChange

      public String getChange()
      value of change}
      Returns:
      change
    • getPreviousValue

      public Integer getPreviousValue()

      Value before the change.

      Returns:
      previousValue
    • getNextValue

      public Integer getNextValue()

      Value after the change.

      Returns:
      nextValue
    • build

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

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

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

      create builder for SetMinCartQuantityChange instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder