Class SearchExecutionFailureErrorBuilder

java.lang.Object
com.commercetools.api.models.error.SearchExecutionFailureErrorBuilder
All Implemented Interfaces:
Builder<SearchExecutionFailureError>

public class SearchExecutionFailureErrorBuilder extends Object implements Builder<SearchExecutionFailureError>
SearchExecutionFailureErrorBuilder
Example to create an instance using the builder pattern

     SearchExecutionFailureError searchExecutionFailureError = SearchExecutionFailureError.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • SearchExecutionFailureErrorBuilder

      public SearchExecutionFailureErrorBuilder()
  • Method Details

    • message

      public SearchExecutionFailureErrorBuilder message(String message)

      "Something went wrong during the search query execution. In most case this happens due to usage of non-existing fields and custom product attributes. Please verify all filters and facets in your search query and make sure that all paths are correct."

      Parameters:
      message - value to be set
      Returns:
      Builder
    • values

      Error-specific additional fields.

      Parameters:
      values - properties to be set
      Returns:
      Builder
    • addValue

      public SearchExecutionFailureErrorBuilder addValue(String key, Object value)

      Error-specific additional fields.

      Parameters:
      key - property name
      value - property value
      Returns:
      Builder
    • getMessage

      public String getMessage()

      "Something went wrong during the search query execution. In most case this happens due to usage of non-existing fields and custom product attributes. Please verify all filters and facets in your search query and make sure that all paths are correct."

      Returns:
      message
    • getValues

      public Map<String,Object> getValues()

      Error-specific additional fields.

      Returns:
      pattern properties
    • build

      builds SearchExecutionFailureError with checking for non-null required values
      Specified by:
      build in interface Builder<SearchExecutionFailureError>
      Returns:
      SearchExecutionFailureError
    • buildUnchecked

      public SearchExecutionFailureError buildUnchecked()
      builds SearchExecutionFailureError without checking for non-null required values
      Returns:
      SearchExecutionFailureError
    • of

      factory method for an instance of SearchExecutionFailureErrorBuilder
      Returns:
      builder
    • of

      create builder for SearchExecutionFailureError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder