Interface SearchNotReadyError
- All Superinterfaces:
ErrorObject
Returned if the requested search service is not ready. The search might be deactivated or indexing is in progress.
Example to create an instance using the builder pattern
SearchNotReadyError searchNotReadyError = SearchNotReadyError.builder()
.message("{message}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SearchNotReadyErrorBuilder
builder()
builder factory method for SearchNotReadyErrorstatic SearchNotReadyErrorBuilder
builder
(SearchNotReadyError template) create builder for SearchNotReadyError instancestatic SearchNotReadyError
deepCopy
(SearchNotReadyError template) factory method to create a deep copy of SearchNotReadyError@NotNull String
getCode()
Error identifier.@NotNull String
$Search is not ready.
static SearchNotReadyError
of()
factory methodstatic SearchNotReadyError
of
(SearchNotReadyError template) factory method to create a shallow copy SearchNotReadyErrorvoid
setMessage
(String message) $Search is not ready.
static com.fasterxml.jackson.core.type.TypeReference<SearchNotReadyError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withSearchNotReadyError
(Function<SearchNotReadyError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
SEARCH_NOT_READY
discriminator value for SearchNotReadyError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
$Search is not ready. Check the indexing-status endpoint and that the feature has been activated in the project settings.
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
setMessage
$Search is not ready. Check the indexing-status endpoint and that the feature has been activated in the project settings.
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
of
factory method- Returns:
- instance of SearchNotReadyError
-
of
factory method to create a shallow copy SearchNotReadyError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of SearchNotReadyError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for SearchNotReadyError- Returns:
- builder
-
builder
create builder for SearchNotReadyError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withSearchNotReadyError
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-