Class SetMaxCartQuantityChangeBuilder

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

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

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

    • SetMaxCartQuantityChangeBuilder

      public SetMaxCartQuantityChangeBuilder()
  • Method Details

    • change

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

      public SetMaxCartQuantityChangeBuilder previousValue(Integer previousValue)

      Value before the change.

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

      public SetMaxCartQuantityChangeBuilder 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 SetMaxCartQuantityChange build()
      builds SetMaxCartQuantityChange with checking for non-null required values
      Specified by:
      build in interface Builder<SetMaxCartQuantityChange>
      Returns:
      SetMaxCartQuantityChange
    • buildUnchecked

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

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

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