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 instancestatic ProductSearchErrorResponse
deepCopy
(ProductSearchErrorResponse template) factory method to create a deep copy of ProductSearchErrorResponse@Valid List<ErrorObject>
The errors that caused this error response.@NotNull String
Describes the error.@NotNull Integer
The HTTP status code of the response.static ProductSearchErrorResponse
of()
factory methodstatic ProductSearchErrorResponse
of
(ProductSearchErrorResponse template) factory method to create a shallow copy ProductSearchErrorResponsevoid
setErrors
(ErrorObject... errors) The errors that caused this error response.void
setErrors
(List<ErrorObject> errors) The errors that caused this error response.void
setMessage
(String message) Describes the error.void
setStatusCode
(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> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorResponse
withErrorResponse
-
Method Details
-
getStatusCode
The HTTP status code of the response.
- Specified by:
getStatusCode
in interfaceErrorResponse
- Returns:
- statusCode
-
getMessage
Describes the error.
- Specified by:
getMessage
in interfaceErrorResponse
- Returns:
- message
-
getErrors
The errors that caused this error response.
- Specified by:
getErrors
in interfaceErrorResponse
- Returns:
- errors
-
setStatusCode
The HTTP status code of the response.
- Specified by:
setStatusCode
in interfaceErrorResponse
- Parameters:
statusCode
- value to be set
-
setMessage
Describes the error.
- Specified by:
setMessage
in interfaceErrorResponse
- Parameters:
message
- value to be set
-
setErrors
The errors that caused this error response.
- Specified by:
setErrors
in interfaceErrorResponse
- Parameters:
errors
- values to be set
-
setErrors
The errors that caused this error response.
- Specified by:
setErrors
in 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
-
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
-