Interface ProductSearchErrorResponse
- All Superinterfaces:
ErrorResponse
ProductSearchErrorResponse
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSearchErrorResponse productSearchErrorResponse = ProductSearchErrorResponse.builder()
.statusCode(1)
.message("{message}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductSearchErrorResponsebuilder(ProductSearchErrorResponse template) create builder for ProductSearchErrorResponse instancecopyDeep()static ProductSearchErrorResponsedeepCopy(ProductSearchErrorResponse template) factory method to create a deep copy of ProductSearchErrorResponse@Valid List<ErrorObject>The errors that caused this error response.@NotNull StringDescribes the error.@NotNull IntegerThe HTTP status code of the response.static ProductSearchErrorResponseof()factory methodstatic ProductSearchErrorResponseof(ProductSearchErrorResponse template) factory method to create a shallow copy ProductSearchErrorResponsevoidsetErrors(ErrorObject... errors) The errors that caused this error response.voidsetErrors(List<ErrorObject> errors) The errors that caused this error response.voidsetMessage(String message) Describes the error.voidsetStatusCode(Integer statusCode) The HTTP status code of the response.static com.fasterxml.jackson.core.type.TypeReference<ProductSearchErrorResponse>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorResponse
withErrorResponse
-
Method Details
-
getStatusCode
The HTTP status code of the response.
- Specified by:
getStatusCodein interfaceErrorResponse- Returns:
- statusCode
-
getMessage
Describes the error.
- Specified by:
getMessagein interfaceErrorResponse- Returns:
- message
-
getErrors
The errors that caused this error response.
- Specified by:
getErrorsin interfaceErrorResponse- Returns:
- errors
-
setStatusCode
The HTTP status code of the response.
- Specified by:
setStatusCodein interfaceErrorResponse- Parameters:
statusCode- value to be set
-
setMessage
Describes the error.
- Specified by:
setMessagein interfaceErrorResponse- Parameters:
message- value to be set
-
setErrors
The errors that caused this error response.
- Specified by:
setErrorsin interfaceErrorResponse- Parameters:
errors- values to be set
-
setErrors
The errors that caused this error response.
- Specified by:
setErrorsin interfaceErrorResponse- Parameters:
errors- values to be set
-
of
factory method- Returns:
- instance of ProductSearchErrorResponse
-
of
factory method to create a shallow copy ProductSearchErrorResponse- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductSearchErrorResponse copyDeep()- Specified by:
copyDeepin interfaceErrorResponse
-
deepCopy
factory method to create a deep copy of ProductSearchErrorResponse- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSearchErrorResponse- Returns:
- builder
-
builder
create builder for ProductSearchErrorResponse instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductSearchErrorResponse
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
-