Class SetMaxApplicationsChangeBuilder

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

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

     SetMaxApplicationsChange setMaxApplicationsChange = SetMaxApplicationsChange.builder()
             .change("{change}")
             .previousValue(1)
             .nextValue(1)
             .build()
 
  • Constructor Details

    • SetMaxApplicationsChangeBuilder

      public SetMaxApplicationsChangeBuilder()
  • Method Details

    • change

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

      public SetMaxApplicationsChangeBuilder previousValue(Integer previousValue)

      Value before the change.

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

      public SetMaxApplicationsChangeBuilder nextValue(Integer nextValue)

      Value after the change.

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

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

      public Integer getPreviousValue()

      Value before the change.

      Returns:
      previousValue
    • getNextValue

      public Integer getNextValue()

      Value after the change.

      Returns:
      nextValue
    • build

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

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

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

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