Class SetCartPredicateChangeBuilder

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

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

     SetCartPredicateChange setCartPredicateChange = SetCartPredicateChange.builder()
             .change("{change}")
             .previousValue("{previousValue}")
             .nextValue("{nextValue}")
             .build()
 
  • Constructor Details

    • SetCartPredicateChangeBuilder

      public SetCartPredicateChangeBuilder()
  • Method Details

    • change

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

      public SetCartPredicateChangeBuilder previousValue(String previousValue)

      Value before the change.

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

      public SetCartPredicateChangeBuilder nextValue(String nextValue)

      Value after the change.

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

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

      public String getPreviousValue()

      Value before the change.

      Returns:
      previousValue
    • getNextValue

      public String getNextValue()

      Value after the change.

      Returns:
      nextValue
    • build

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

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

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

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