Class SetLanguagesChangeBuilder

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

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

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

    • SetLanguagesChangeBuilder

      public SetLanguagesChangeBuilder()
  • Method Details

    • change

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

      public SetLanguagesChangeBuilder previousValue(String... previousValue)

      Value before the change.

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

      public SetLanguagesChangeBuilder previousValue(List<String> previousValue)

      Value before the change.

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

      public SetLanguagesChangeBuilder plusPreviousValue(String... previousValue)

      Value before the change.

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

      public SetLanguagesChangeBuilder nextValue(String... nextValue)

      Value after the change.

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

      public SetLanguagesChangeBuilder nextValue(List<String> nextValue)

      Value after the change.

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

      public SetLanguagesChangeBuilder 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 SetLanguagesChange build()
      builds SetLanguagesChange with checking for non-null required values
      Specified by:
      build in interface Builder<SetLanguagesChange>
      Returns:
      SetLanguagesChange
    • buildUnchecked

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

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

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