Interface GraphQLLockedFieldError
- All Superinterfaces:
GraphQLErrorObject
Returned when two Customers are simultaneously created or updated with the same email address.
To confirm if the operation was successful, repeat the request.
Example to create an instance using the builder pattern
GraphQLLockedFieldError graphQLLockedFieldError = GraphQLLockedFieldError.builder()
.field("{field}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLLockedFieldError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLLockedFieldErrorbuilder
(GraphQLLockedFieldError template) create builder for GraphQLLockedFieldError instancestatic GraphQLLockedFieldError
deepCopy
(GraphQLLockedFieldError template) factory method to create a deep copy of GraphQLLockedFieldError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.@NotNull String
getField()
Field that is currently locked.static GraphQLLockedFieldError
of()
factory methodstatic GraphQLLockedFieldError
of
(GraphQLLockedFieldError template) factory method to create a shallow copy GraphQLLockedFieldErrorvoid
Field that is currently locked.static com.fasterxml.jackson.core.type.TypeReference<GraphQLLockedFieldError>
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
-
LOCKED_FIELD
discriminator value for GraphQLLockedFieldError- See Also:
-
-
Method Details
-
getField
Field that is currently locked.
- Returns:
- field
-
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
-
setField
Field that is currently locked.
- Parameters:
field
- value to be set
-
of
factory method- Returns:
- instance of GraphQLLockedFieldError
-
of
factory method to create a shallow copy GraphQLLockedFieldError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of GraphQLLockedFieldError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLLockedFieldError- Returns:
- builder
-
builder
create builder for GraphQLLockedFieldError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLLockedFieldError
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
-