Class RemoveImageChangeBuilder

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

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

     RemoveImageChange removeImageChange = RemoveImageChange.builder()
             .change("{change}")
             .plusPreviousValue(previousValueBuilder -> previousValueBuilder)
             .plusNextValue(nextValueBuilder -> nextValueBuilder)
             .catalogData("{catalogData}")
             .build()
 
  • Constructor Details

    • RemoveImageChangeBuilder

      public RemoveImageChangeBuilder()
  • Method Details

    • change

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

      public RemoveImageChangeBuilder previousValue(Image... previousValue)

      Value before the change.

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

      public RemoveImageChangeBuilder previousValue(List<Image> previousValue)

      Value before the change.

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

      public RemoveImageChangeBuilder plusPreviousValue(Image... previousValue)

      Value before the change.

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

      public RemoveImageChangeBuilder plusPreviousValue(Function<ImageBuilder,ImageBuilder> builder)

      Value before the change.

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

      public RemoveImageChangeBuilder withPreviousValue(Function<ImageBuilder,ImageBuilder> builder)

      Value before the change.

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

      public RemoveImageChangeBuilder addPreviousValue(Function<ImageBuilder,Image> builder)

      Value before the change.

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

      public RemoveImageChangeBuilder setPreviousValue(Function<ImageBuilder,Image> builder)

      Value before the change.

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

      public RemoveImageChangeBuilder nextValue(Image... nextValue)

      Value after the change.

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

      public RemoveImageChangeBuilder nextValue(List<Image> nextValue)

      Value after the change.

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

      public RemoveImageChangeBuilder plusNextValue(Image... nextValue)

      Value after the change.

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

      Value after the change.

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

      Value after the change.

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

      public RemoveImageChangeBuilder addNextValue(Function<ImageBuilder,Image> builder)

      Value after the change.

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

      public RemoveImageChangeBuilder setNextValue(Function<ImageBuilder,Image> builder)

      Value after the change.

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

      public RemoveImageChangeBuilder catalogData(String catalogData)
      • staged, if the staged ProductCatalogData was updated.
      • current, if the current ProductCatalogData was updated.
      Parameters:
      catalogData - value to be set
      Returns:
      Builder
    • getChange

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

      public List<Image> getPreviousValue()

      Value before the change.

      Returns:
      previousValue
    • getNextValue

      public List<Image> getNextValue()

      Value after the change.

      Returns:
      nextValue
    • getCatalogData

      public String getCatalogData()
      • staged, if the staged ProductCatalogData was updated.
      • current, if the current ProductCatalogData was updated.
      Returns:
      catalogData
    • build

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

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

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

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