Interface SearchDeactivatedError
- All Superinterfaces:
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 Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for SearchDeactivatedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for SearchDeactivatedErrorbuilder
(SearchDeactivatedError template) create builder for SearchDeactivatedError instancestatic SearchDeactivatedError
deepCopy
(SearchDeactivatedError template) factory method to create a deep copy of SearchDeactivatedError@NotNull String
getCode()
Error identifier.@NotNull String
"The endpoint is deactivated for this project.
static SearchDeactivatedError
of()
factory methodstatic SearchDeactivatedError
of
(SearchDeactivatedError template) factory method to create a shallow copy SearchDeactivatedErrorvoid
setMessage
(String message) "The endpoint is deactivated for this project.
static com.fasterxml.jackson.core.type.TypeReference<SearchDeactivatedError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
SEARCH_DEACTIVATED
discriminator value for SearchDeactivatedError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
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 interfaceErrorObject
- Returns:
- message
-
setMessage
"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 interfaceErrorObject
- 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
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
-