Class SetPriceKeyChangeBuilder

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

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

     SetPriceKeyChange setPriceKeyChange = SetPriceKeyChange.builder()
             .change("{change}")
             .catalogData("{catalogData}")
             .variant("{variant}")
             .priceId("{priceId}")
             .previousValue("{previousValue}")
             .nextValue("{nextValue}")
             .build()
 
  • Constructor Details

    • SetPriceKeyChangeBuilder

      public SetPriceKeyChangeBuilder()
  • Method Details

    • change

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

      public SetPriceKeyChangeBuilder catalogData(String catalogData)

      Product data that was updated.

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

      public SetPriceKeyChangeBuilder variant(String variant)

      Identifier of the updated Product Variant.

      This field holds the SKU, if defined; otherwise the key; otherwise the ID.

      Parameters:
      variant - value to be set
      Returns:
      Builder
    • priceId

      public SetPriceKeyChangeBuilder priceId(String priceId)

      id of the Embedded Price.

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

      public SetPriceKeyChangeBuilder previousValue(String previousValue)

      Value before the change.

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

      public SetPriceKeyChangeBuilder nextValue(String nextValue)

      Value after the change.

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

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

      public String getCatalogData()

      Product data that was updated.

      Returns:
      catalogData
    • getVariant

      public String getVariant()

      Identifier of the updated Product Variant.

      This field holds the SKU, if defined; otherwise the key; otherwise the ID.

      Returns:
      variant
    • getPriceId

      public String getPriceId()

      id of the Embedded Price.

      Returns:
      priceId
    • getPreviousValue

      public String getPreviousValue()

      Value before the change.

      Returns:
      previousValue
    • getNextValue

      public String getNextValue()

      Value after the change.

      Returns:
      nextValue
    • build

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

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

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

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