Class SetAssetKeyChangeBuilder

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

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

     SetAssetKeyChange setAssetKeyChange = SetAssetKeyChange.builder()
             .change("{change}")
             .previousValue("{previousValue}")
             .nextValue("{nextValue}")
             .asset(assetBuilder -> assetBuilder)
             .catalogData("{catalogData}")
             .variant("{variant}")
             .build()
 
  • Constructor Details

    • SetAssetKeyChangeBuilder

      public SetAssetKeyChangeBuilder()
  • Method Details

    • change

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

      public SetAssetKeyChangeBuilder previousValue(String previousValue)

      Value before the change.

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

      public SetAssetKeyChangeBuilder nextValue(String nextValue)

      Value after the change.

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

      Information about the updated Asset.

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

      Information about the updated Asset.

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

      Information about the updated Asset.

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

      public SetAssetKeyChangeBuilder catalogData(String catalogData)

      Product data that was updated.

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

      public SetAssetKeyChangeBuilder 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
    • 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
    • getAsset

      public AssetChangeValue getAsset()

      Information about the updated Asset.

      Returns:
      asset
    • 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
    • build

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

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

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

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