Interface GenericError
- All Superinterfaces:
ErrorObject
GenericError
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GenericError genericError = GenericError.builder()
.message("{message}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic GenericErrorBuilder
builder()
builder factory method for GenericErrorstatic GenericErrorBuilder
builder
(GenericError template) create builder for GenericError instancestatic GenericError
deepCopy
(GenericError template) factory method to create a deep copy of GenericErrorstatic GenericError
of()
factory methodstatic GenericError
of
(GenericError template) factory method to create a shallow copy GenericErrorstatic com.fasterxml.jackson.core.type.TypeReference<GenericError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withGenericError
(Function<GenericError, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.errors.ErrorObject
getCode, getMessage, setMessage, withErrorObject
-
Field Details
-
GENERIC
discriminator value for GenericError- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of GenericError
-
of
factory method to create a shallow copy GenericError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of GenericError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GenericError- Returns:
- builder
-
builder
create builder for GenericError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGenericError
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
-