Interface GraphQLReferencedResourceNotFoundError
- All Superinterfaces:
GraphQLErrorObject
Returned when a resource referenced by a Reference or a ResourceIdentifier could not be found.
Example to create an instance using the builder pattern
GraphQLReferencedResourceNotFoundError graphQLReferencedResourceNotFoundError = GraphQLReferencedResourceNotFoundError.builder()
.typeId(ReferenceTypeId.APPROVAL_FLOW)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLReferencedResourceNotFoundError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLReferencedResourceNotFoundErrorcreate builder for GraphQLReferencedResourceNotFoundError instancefactory method to create a deep copy of GraphQLReferencedResourceNotFoundError@NotNull String
getCode()
Error identifier.getId()
Unique identifier of the referenced resource, if known.getKey()
User-defined unique identifier of the referenced resource, if known.@NotNull ReferenceTypeId
Type of referenced resource.of()
factory methodof
(GraphQLReferencedResourceNotFoundError template) factory method to create a shallow copy GraphQLReferencedResourceNotFoundErrorvoid
Unique identifier of the referenced resource, if known.void
User-defined unique identifier of the referenced resource, if known.void
setTypeId
(ReferenceTypeId typeId) Type of referenced resource.static com.fasterxml.jackson.core.type.TypeReference<GraphQLReferencedResourceNotFoundError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withGraphQLReferencedResourceNotFoundError
(Function<GraphQLReferencedResourceNotFoundError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
REFERENCED_RESOURCE_NOT_FOUND
discriminator value for GraphQLReferencedResourceNotFoundError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
getTypeId
Type of referenced resource.
- Returns:
- typeId
-
getId
String getId()Unique identifier of the referenced resource, if known.
- Returns:
- id
-
getKey
String getKey()User-defined unique identifier of the referenced resource, if known.
- Returns:
- key
-
setTypeId
Type of referenced resource.
- Parameters:
typeId
- value to be set
-
setId
Unique identifier of the referenced resource, if known.
- Parameters:
id
- value to be set
-
setKey
User-defined unique identifier of the referenced resource, if known.
- Parameters:
key
- value to be set
-
of
factory method- Returns:
- instance of GraphQLReferencedResourceNotFoundError
-
of
factory method to create a shallow copy GraphQLReferencedResourceNotFoundError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLReferencedResourceNotFoundError deepCopy(@Nullable GraphQLReferencedResourceNotFoundError template) factory method to create a deep copy of GraphQLReferencedResourceNotFoundError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLReferencedResourceNotFoundError- Returns:
- builder
-
builder
static GraphQLReferencedResourceNotFoundErrorBuilder builder(GraphQLReferencedResourceNotFoundError template) create builder for GraphQLReferencedResourceNotFoundError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLReferencedResourceNotFoundError
default <T> T withGraphQLReferencedResourceNotFoundError(Function<GraphQLReferencedResourceNotFoundError, 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<GraphQLReferencedResourceNotFoundError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-