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