Class AddLocationChangeBuilder

java.lang.Object
com.commercetools.history.models.change.AddLocationChangeBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<AddLocationChange>

public class AddLocationChangeBuilder extends Object implements io.vrap.rmf.base.client.Builder<AddLocationChange>
AddLocationChangeBuilder
Example to create an instance using the builder pattern

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

    • AddLocationChangeBuilder

      public AddLocationChangeBuilder()
  • Method Details

    • change

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

      Value after the change.

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

      public AddLocationChangeBuilder withNextValue(Function<LocationBuilder,Location> builder)

      Value after the change.

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

      public AddLocationChangeBuilder nextValue(Location nextValue)

      Value after the change.

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

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

      public Location getNextValue()

      Value after the change.

      Returns:
      nextValue
    • build

      public AddLocationChange build()
      builds AddLocationChange with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<AddLocationChange>
      Returns:
      AddLocationChange
    • buildUnchecked

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

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

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