Class UnknownChangeBuilder

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

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

     UnknownChange unknownChange = UnknownChange.builder()
             .change("{change}")
             .build()
 
  • Constructor Details

    • UnknownChangeBuilder

      public UnknownChangeBuilder()
  • Method Details

    • change

      public UnknownChangeBuilder change(String change)

      Identifier for the type of modification.

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

      public UnknownChangeBuilder previousValue(Object previousValue)

      Value before the change.

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

      public UnknownChangeBuilder nextValue(Object nextValue)

      Value after the change.

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

      public String getChange()

      Identifier for the type of modification.

      Returns:
      change
    • getPreviousValue

      public Object getPreviousValue()

      Value before the change.

      Returns:
      previousValue
    • getNextValue

      public Object getNextValue()

      Value after the change.

      Returns:
      nextValue
    • build

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

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

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

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