Interface GraphQLConcurrentModificationError
- All Superinterfaces:
GraphQLErrorObject
Returned when the request conflicts with the current state of the involved resources. Typically, the request attempts to modify a resource that is out of date (that is modified by another client since it was last retrieved). The client application should resolve the conflict (with or without involving the end user) before retrying the request.
Example to create an instance using the builder pattern
GraphQLConcurrentModificationError graphQLConcurrentModificationError = GraphQLConcurrentModificationError.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLConcurrentModificationError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLConcurrentModificationErrorbuilder
(GraphQLConcurrentModificationError template) create builder for GraphQLConcurrentModificationError instancedeepCopy
(GraphQLConcurrentModificationError template) factory method to create a deep copy of GraphQLConcurrentModificationError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.Current version of the resource.of()
factory methodof
(GraphQLConcurrentModificationError template) factory method to create a shallow copy GraphQLConcurrentModificationErrorvoid
setCurrentVersion
(Long currentVersion) Current version of the resource.static com.fasterxml.jackson.core.type.TypeReference<GraphQLConcurrentModificationError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
CONCURRENT_MODIFICATION
discriminator value for GraphQLConcurrentModificationError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
One of the error codes that is listed on the Errors page.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
getCurrentVersion
Long getCurrentVersion()Current version of the resource.
- Returns:
- currentVersion
-
setCurrentVersion
Current version of the resource.
- Parameters:
currentVersion
- value to be set
-
of
factory method- Returns:
- instance of GraphQLConcurrentModificationError
-
of
factory method to create a shallow copy GraphQLConcurrentModificationError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLConcurrentModificationError deepCopy(@Nullable GraphQLConcurrentModificationError template) factory method to create a deep copy of GraphQLConcurrentModificationError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLConcurrentModificationError- Returns:
- builder
-
builder
static GraphQLConcurrentModificationErrorBuilder builder(GraphQLConcurrentModificationError template) create builder for GraphQLConcurrentModificationError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLConcurrentModificationError
default <T> T withGraphQLConcurrentModificationError(Function<GraphQLConcurrentModificationError, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<GraphQLConcurrentModificationError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-