Class SetLastNameChangeBuilder

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

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

     SetLastNameChange setLastNameChange = SetLastNameChange.builder()
             .change("{change}")
             .previousValue("{previousValue}")
             .nextValue("{nextValue}")
             .build()
 
  • Constructor Details

    • SetLastNameChangeBuilder

      public SetLastNameChangeBuilder()
  • Method Details

    • change

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

      public SetLastNameChangeBuilder previousValue(String previousValue)

      Value before the change.

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

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

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

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

      public static SetLastNameChangeBuilder of(SetLastNameChange template)
      create builder for SetLastNameChange instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder