Interface SearchDeactivatedError

All Superinterfaces:
ErrorObject

public interface SearchDeactivatedError extends ErrorObject

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.


Example to create an instance using the builder pattern

     SearchDeactivatedError searchDeactivatedError = SearchDeactivatedError.builder()
             .message("{message}")
             .build()
 
  • Field Details

    • SEARCH_DEACTIVATED

      static final String SEARCH_DEACTIVATED
      discriminator value for SearchDeactivatedError
      See Also:
  • Method Details

    • getCode

      @NotNull @NotNull String getCode()
      Description copied from interface: ErrorObject

      Error identifier.

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

      @NotNull @NotNull 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
      Returns:
      message
    • setMessage

      void setMessage(String message)

      "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
      Parameters:
      message - value to be set
    • of

      factory method
      Returns:
      instance of SearchDeactivatedError
    • of

      factory method to create a shallow copy SearchDeactivatedError
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of SearchDeactivatedError
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for SearchDeactivatedError
      Returns:
      builder
    • builder

      create builder for SearchDeactivatedError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withSearchDeactivatedError

      default <T> T withSearchDeactivatedError(Function<SearchDeactivatedError,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<SearchDeactivatedError> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference