Class SearchNotReadyErrorBuilder

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

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

     SearchNotReadyError searchNotReadyError = SearchNotReadyError.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • SearchNotReadyErrorBuilder

      public SearchNotReadyErrorBuilder()
  • Method Details

    • message

      public SearchNotReadyErrorBuilder message(String message)

      $Search is not ready. Check the indexing-status endpoint and that the feature has been activated in the project settings.

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

      public SearchNotReadyErrorBuilder values(Map<String,Object> values)

      Error-specific additional fields.

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

      public SearchNotReadyErrorBuilder addValue(String key, Object value)

      Error-specific additional fields.

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

      public String getMessage()

      $Search is not ready. Check the indexing-status endpoint and that the feature has been activated in the project settings.

      Returns:
      message
    • getValues

      public Map<String,Object> getValues()

      Error-specific additional fields.

      Returns:
      pattern properties
    • build

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

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

      public static SearchNotReadyErrorBuilder of()
      factory method for an instance of SearchNotReadyErrorBuilder
      Returns:
      builder
    • of

      public static SearchNotReadyErrorBuilder of(SearchNotReadyError template)
      create builder for SearchNotReadyError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder