Class ChangeGroupsChangeBuilder

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

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

     ChangeGroupsChange changeGroupsChange = ChangeGroupsChange.builder()
             .change("{change}")
             .plusPreviousValue(previousValueBuilder -> previousValueBuilder)
             .plusNextValue(nextValueBuilder -> nextValueBuilder)
             .build()
 
  • Constructor Details

    • ChangeGroupsChangeBuilder

      public ChangeGroupsChangeBuilder()
  • Method Details

    • change

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

      public ChangeGroupsChangeBuilder previousValue(String... previousValue)

      Value before the change.

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

      public ChangeGroupsChangeBuilder previousValue(List<String> previousValue)

      Value before the change.

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

      public ChangeGroupsChangeBuilder plusPreviousValue(String... previousValue)

      Value before the change.

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

      public ChangeGroupsChangeBuilder nextValue(String... nextValue)

      Value after the change.

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

      public ChangeGroupsChangeBuilder nextValue(List<String> nextValue)

      Value after the change.

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

      public ChangeGroupsChangeBuilder plusNextValue(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 List<String> getPreviousValue()

      Value before the change.

      Returns:
      previousValue
    • getNextValue

      public List<String> getNextValue()

      Value after the change.

      Returns:
      nextValue
    • build

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

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

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

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