Class ChangeEmailChangeBuilder

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

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

     ChangeEmailChange changeEmailChange = ChangeEmailChange.builder()
             .change("{change}")
             .previousValue("{previousValue}")
             .nextValue("{nextValue}")
             .build()
 
  • Constructor Details

    • ChangeEmailChangeBuilder

      public ChangeEmailChangeBuilder()
  • Method Details

    • change

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

      public ChangeEmailChangeBuilder previousValue(String previousValue)

      Value before the change.

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

      public ChangeEmailChangeBuilder nextValue(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 String getPreviousValue()

      Value before the change.

      Returns:
      previousValue
    • getNextValue

      public String getNextValue()

      Value after the change.

      Returns:
      nextValue
    • build

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

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

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

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