Class SetCompanyNameChangeBuilder

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

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

     SetCompanyNameChange setCompanyNameChange = SetCompanyNameChange.builder()
             .change("{change}")
             .previousValue("{previousValue}")
             .nextValue("{nextValue}")
             .build()
 
  • Constructor Details

    • SetCompanyNameChangeBuilder

      public SetCompanyNameChangeBuilder()
  • Method Details

    • change

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

      public SetCompanyNameChangeBuilder previousValue(String previousValue)

      Value before the change.

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

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

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

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

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