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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for SearchDeactivatedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for SearchDeactivatedErrorbuilder(SearchDeactivatedError template) create builder for SearchDeactivatedError instancecopyDeep()static SearchDeactivatedErrordeepCopy(SearchDeactivatedError template) factory method to create a deep copy of SearchDeactivatedError@NotNull StringgetCode()Error identifier.@NotNull String"The endpoint is deactivated for this project.static SearchDeactivatedErrorof()factory methodstatic SearchDeactivatedErrorof(SearchDeactivatedError template) factory method to create a shallow copy SearchDeactivatedErrorvoidsetMessage(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> Taccessor 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:ErrorObjectError identifier.
- Specified by:
getCodein 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:
getMessagein 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:
setMessagein 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
-
copyDeep
SearchDeactivatedError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
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
-