Class ChangeInitialChangeBuilder

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

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

     ChangeInitialChange changeInitialChange = ChangeInitialChange.builder()
             .change("{change}")
             .previousValue(true)
             .nextValue(true)
             .build()
 
  • Constructor Details

    • ChangeInitialChangeBuilder

      public ChangeInitialChangeBuilder()
  • Method Details

    • change

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

      public ChangeInitialChangeBuilder previousValue(Boolean previousValue)

      Value before the change.

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

      public ChangeInitialChangeBuilder nextValue(Boolean nextValue)

      Value after the change.

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

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

      public Boolean getPreviousValue()

      Value before the change.

      Returns:
      previousValue
    • getNextValue

      public Boolean getNextValue()

      Value after the change.

      Returns:
      nextValue
    • build

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

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

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

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