Class RemovePropertyChangeBuilder

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

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

     RemovePropertyChange removePropertyChange = RemovePropertyChange.builder()
             .change("{change}")
             .path("{path}")
             .build()
 
  • Constructor Details

    • RemovePropertyChangeBuilder

      public RemovePropertyChangeBuilder()
  • Method Details

    • change

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

      public RemovePropertyChangeBuilder previousValue(Object previousValue)

      Value before the change.

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

      public RemovePropertyChangeBuilder path(String path)

      Path to the property that was removed.

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

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

      public Object getPreviousValue()

      Value before the change.

      Returns:
      previousValue
    • getPath

      public String getPath()

      Path to the property that was removed.

      Returns:
      path
    • build

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

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

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

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