Class SetSkuChangeBuilder

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

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

     SetSkuChange setSkuChange = SetSkuChange.builder()
             .change("{change}")
             .previousValue("{previousValue}")
             .nextValue("{nextValue}")
             .catalogData("{catalogData}")
             .build()
 
  • Constructor Details

    • SetSkuChangeBuilder

      public SetSkuChangeBuilder()
  • Method Details

    • change

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

      public SetSkuChangeBuilder previousValue(String previousValue)

      Value before the change.

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

      public SetSkuChangeBuilder nextValue(String nextValue)

      Value after the change.

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

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

      Value before the change.

      Returns:
      previousValue
    • getNextValue

      public String 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 SetSkuChange build()
      builds SetSkuChange with checking for non-null required values
      Specified by:
      build in interface Builder<SetSkuChange>
      Returns:
      SetSkuChange
    • buildUnchecked

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

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

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