Class SetProductVariantKeyChangeBuilder

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

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

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

    • SetProductVariantKeyChangeBuilder

      public SetProductVariantKeyChangeBuilder()
  • Method Details

    • change

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

      public SetProductVariantKeyChangeBuilder previousValue(String previousValue)

      Value before the change.

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

      public SetProductVariantKeyChangeBuilder nextValue(String nextValue)

      Value after the change.

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

      public SetProductVariantKeyChangeBuilder 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

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

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

      factory method for an instance of SetProductVariantKeyChangeBuilder
      Returns:
      builder
    • of

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