Class SetAnonymousIdChangeBuilder

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

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

     SetAnonymousIdChange setAnonymousIdChange = SetAnonymousIdChange.builder()
             .change("{change}")
             .previousValue("{previousValue}")
             .nextValue("{nextValue}")
             .build()
 
  • Constructor Details

    • SetAnonymousIdChangeBuilder

      public SetAnonymousIdChangeBuilder()
  • Method Details

    • change

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

      public SetAnonymousIdChangeBuilder previousValue(String previousValue)

      Value before the change.

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

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

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

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

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