Class SetKeyChangeImpl

java.lang.Object
com.commercetools.history.models.change.SetKeyChangeImpl
All Implemented Interfaces:
Change, SetKeyChange, io.vrap.rmf.base.client.ModelBase

public class SetKeyChangeImpl extends Object implements SetKeyChange, io.vrap.rmf.base.client.ModelBase

Change triggered by the following update actions:

  • Set Key on Cart Discounts.
  • Set Key on Categories.
  • Set Key on Customers.
  • Set Key on Customer Groups.
  • Set Key on Payments.
  • Set Key on Products.
  • Set Key on Product Discounts.
  • Set Key on Product Selections.
  • Set Key on Product Types.
  • Set Key on Reviews.
  • Set Key on Shopping Lists.
  • Set Key on Zones.
  • Constructor Details

    • SetKeyChangeImpl

      public SetKeyChangeImpl()
      create empty instance
  • Method Details

    • getType

      public String getType()
      Description copied from interface: Change

      Unique discriminator value to reliably deserialize the data type.

      Specified by:
      getType in interface Change
      Specified by:
      getType in interface SetKeyChange
      Returns:
      type
    • getChange

      public String getChange()
      Description copied from interface: Change

      Type of change on a resource that is similar to the update action it relates to, where possible. It is not a unique identifier for the data structure, for example, the setDescription change can occur with a localized and non-localized representation.

      Records can be filtered by this value using the changes query parameter.

      Specified by:
      getChange in interface Change
      Specified by:
      getChange in interface SetKeyChange
      Returns:
      change
    • getPreviousValue

      public String getPreviousValue()

      Value before the change.

      Specified by:
      getPreviousValue in interface SetKeyChange
      Returns:
      previousValue
    • getNextValue

      public String getNextValue()

      Value after the change.

      Specified by:
      getNextValue in interface SetKeyChange
      Returns:
      nextValue
    • setChange

      public void setChange(String change)
      Description copied from interface: SetKeyChange
      set change
      Specified by:
      setChange in interface Change
      Specified by:
      setChange in interface SetKeyChange
      Parameters:
      change - value to be set
    • setPreviousValue

      public void setPreviousValue(String previousValue)
      Description copied from interface: SetKeyChange

      Value before the change.

      Specified by:
      setPreviousValue in interface SetKeyChange
      Parameters:
      previousValue - value to be set
    • setNextValue

      public void setNextValue(String nextValue)
      Description copied from interface: SetKeyChange

      Value after the change.

      Specified by:
      setNextValue in interface SetKeyChange
      Parameters:
      nextValue - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object