Interface GraphQLReferenceExistsError
- All Superinterfaces:
GraphQLErrorObject
Returned when a resource cannot be deleted because it is being referenced by another resource.
Example to create an instance using the builder pattern
GraphQLReferenceExistsError graphQLReferenceExistsError = GraphQLReferenceExistsError.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLReferenceExistsError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLReferenceExistsErrorbuilder
(GraphQLReferenceExistsError template) create builder for GraphQLReferenceExistsError instancestatic GraphQLReferenceExistsError
deepCopy
(GraphQLReferenceExistsError template) factory method to create a deep copy of GraphQLReferenceExistsError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.Type of referenced resource.static GraphQLReferenceExistsError
of()
factory methodstatic GraphQLReferenceExistsError
of
(GraphQLReferenceExistsError template) factory method to create a shallow copy GraphQLReferenceExistsErrorvoid
setReferencedBy
(ReferenceTypeId referencedBy) Type of referenced resource.static com.fasterxml.jackson.core.type.TypeReference<GraphQLReferenceExistsError>
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
-
REFERENCE_EXISTS
discriminator value for GraphQLReferenceExistsError- 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
-
getReferencedBy
ReferenceTypeId getReferencedBy()Type of referenced resource.
- Returns:
- referencedBy
-
setReferencedBy
Type of referenced resource.
- Parameters:
referencedBy
- value to be set
-
of
factory method- Returns:
- instance of GraphQLReferenceExistsError
-
of
factory method to create a shallow copy GraphQLReferenceExistsError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLReferenceExistsError deepCopy(@Nullable GraphQLReferenceExistsError template) factory method to create a deep copy of GraphQLReferenceExistsError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLReferenceExistsError- Returns:
- builder
-
builder
create builder for GraphQLReferenceExistsError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLReferenceExistsError
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
-