Class RemoveLocationChangeBuilder

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

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

     RemoveLocationChange removeLocationChange = RemoveLocationChange.builder()
             .change("{change}")
             .previousValue(previousValueBuilder -> previousValueBuilder)
             .build()
 
  • Constructor Details

    • RemoveLocationChangeBuilder

      public RemoveLocationChangeBuilder()
  • Method Details

    • change

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

      Value before the change.

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

      public RemoveLocationChangeBuilder withPreviousValue(Function<LocationBuilder,Location> builder)

      Value before the change.

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

      public RemoveLocationChangeBuilder previousValue(Location previousValue)

      Value before the change.

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

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

      public Location getPreviousValue()

      Value before the change.

      Returns:
      previousValue
    • build

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

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

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

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