Class AddPropertyChangeBuilder

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

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

     AddPropertyChange addPropertyChange = AddPropertyChange.builder()
             .change("{change}")
             .path("{path}")
             .build()
 
  • Constructor Details

    • AddPropertyChangeBuilder

      public AddPropertyChangeBuilder()
  • Method Details

    • change

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

      public AddPropertyChangeBuilder nextValue(Object nextValue)

      Value after the change.

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

      public AddPropertyChangeBuilder path(String path)

      Path to the new property that was added.

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

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

      public Object getNextValue()

      Value after the change.

      Returns:
      nextValue
    • getPath

      public String getPath()

      Path to the new property that was added.

      Returns:
      path
    • build

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

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

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

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