Class SetAssetKeyChangeBuilder

java.lang.Object
com.commercetools.history.models.change.SetAssetKeyChangeBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<SetAssetKeyChange>

public class SetAssetKeyChangeBuilder extends Object implements io.vrap.rmf.base.client.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)
             .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
    • 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
    • build

      public SetAssetKeyChange build()
      builds SetAssetKeyChange with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.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