Class AddAssociateChangeBuilder

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

@Deprecated public class AddAssociateChangeBuilder extends Object implements Builder<AddAssociateChange>
Deprecated.
AddAssociateChangeBuilder
Example to create an instance using the builder pattern

     AddAssociateChange addAssociateChange = AddAssociateChange.builder()
             .change("{change}")
             .nextValue(nextValueBuilder -> nextValueBuilder)
             .build()
 
  • Constructor Details

    • AddAssociateChangeBuilder

      public AddAssociateChangeBuilder()
      Deprecated.
  • Method Details

    • change

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

      Deprecated.

      Value after the change.

      Parameters:
      builder - function to build the nextValue value
      Returns:
      Builder
    • withNextValue

      Deprecated.

      Value after the change.

      Parameters:
      builder - function to build the nextValue value
      Returns:
      Builder
    • nextValue

      public AddAssociateChangeBuilder nextValue(Associate nextValue)
      Deprecated.

      Value after the change.

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

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

      public Associate getNextValue()
      Deprecated.

      Value after the change.

      Returns:
      nextValue
    • build

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

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

      public static AddAssociateChangeBuilder of()
      Deprecated.
      factory method for an instance of AddAssociateChangeBuilder
      Returns:
      builder
    • of

      public static AddAssociateChangeBuilder of(AddAssociateChange template)
      Deprecated.
      create builder for AddAssociateChange instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder