Class AddEnumValueChangeImpl

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

public class AddEnumValueChangeImpl extends Object implements AddEnumValueChange, io.vrap.rmf.base.client.ModelBase

Change triggered by the Add EnumValue to FieldDefinition update action.

  • Constructor Details

    • AddEnumValueChangeImpl

      public AddEnumValueChangeImpl()
      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 AddEnumValueChange
      Specified by:
      getType in interface Change
      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 AddEnumValueChange
      Specified by:
      getChange in interface Change
      Returns:
      change
    • getNextValue

      public EnumValue getNextValue()

      Value after the change.

      Specified by:
      getNextValue in interface AddEnumValueChange
      Returns:
      nextValue
    • getFieldName

      public String getFieldName()

      Name of the updated FieldDefinition.

      Specified by:
      getFieldName in interface AddEnumValueChange
      Returns:
      fieldName
    • setChange

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

      public void setNextValue(EnumValue nextValue)
      Description copied from interface: AddEnumValueChange

      Value after the change.

      Specified by:
      setNextValue in interface AddEnumValueChange
      Parameters:
      nextValue - value to be set
    • setFieldName

      public void setFieldName(String fieldName)
      Description copied from interface: AddEnumValueChange

      Name of the updated FieldDefinition.

      Specified by:
      setFieldName in interface AddEnumValueChange
      Parameters:
      fieldName - 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