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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLLockedFieldError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLLockedFieldErrorbuilder(GraphQLLockedFieldError template) create builder for GraphQLLockedFieldError instancecopyDeep()static GraphQLLockedFieldErrordeepCopy(GraphQLLockedFieldError template) factory method to create a deep copy of GraphQLLockedFieldError@NotNull StringgetCode()One of the error codes that is listed on the Errors page.@NotNull StringgetField()Field that is currently locked.static GraphQLLockedFieldErrorof()factory methodstatic GraphQLLockedFieldErrorof(GraphQLLockedFieldError template) factory method to create a shallow copy GraphQLLockedFieldErrorvoidField that is currently locked.static com.fasterxml.jackson.core.type.TypeReference<GraphQLLockedFieldError>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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:GraphQLErrorObjectOne of the error codes that is listed on the Errors page.
- Specified by:
getCodein 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
-
copyDeep
GraphQLLockedFieldError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
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
-