Class SearchDeactivatedErrorImpl

java.lang.Object
com.commercetools.api.models.error.SearchDeactivatedErrorImpl
All Implemented Interfaces:
ErrorObject, SearchDeactivatedError, io.vrap.rmf.base.client.ModelBase

public class SearchDeactivatedErrorImpl extends Object implements SearchDeactivatedError, io.vrap.rmf.base.client.ModelBase

Returned when the indexing of Product information is deactivated in a Project.

To activate indexing, call Change Product Search Indexing Enabled and set enabled to true.

  • Constructor Details

    • SearchDeactivatedErrorImpl

      public SearchDeactivatedErrorImpl()
      create empty instance
  • Method Details

    • getCode

      public String getCode()
      Description copied from interface: ErrorObject

      Error identifier.

      Specified by:
      getCode in interface ErrorObject
      Specified by:
      getCode in interface SearchDeactivatedError
      Returns:
      code
    • getMessage

      public String getMessage()

      "The endpoint is deactivated for this project. Please enable it via the Project endpoint, via the Merchant Center in the Project settings, or reach out to Support to enable it."

      Specified by:
      getMessage in interface ErrorObject
      Specified by:
      getMessage in interface SearchDeactivatedError
      Returns:
      message
    • values

      public Map<String,Object> values()

      Error-specific additional fields.

      Specified by:
      values in interface ErrorObject
      Returns:
      map of the pattern property values
    • setMessage

      public void setMessage(String message)
      Description copied from interface: SearchDeactivatedError

      "The endpoint is deactivated for this project. Please enable it via the Project endpoint, via the Merchant Center in the Project settings, or reach out to Support to enable it."

      Specified by:
      setMessage in interface ErrorObject
      Specified by:
      setMessage in interface SearchDeactivatedError
      Parameters:
      message - value to be set
    • setValue

      public void setValue(String key, Object value)
      Description copied from interface: ErrorObject

      Error-specific additional fields.

      Specified by:
      setValue in interface ErrorObject
      Parameters:
      key - property name
      value - property value
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object