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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLReferencedResourceNotFoundError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLReferencedResourceNotFoundErrorcreate builder for GraphQLReferencedResourceNotFoundError instancecopyDeep()factory method to create a deep copy of GraphQLReferencedResourceNotFoundError@NotNull StringgetCode()One of the error codes that is listed on the Errors page.getId()Unique identifier of the referenced resource, if known.getKey()User-defined unique identifier of the referenced resource, if known.@NotNull ReferenceTypeIdType of referenced resource.of()factory methodof(GraphQLReferencedResourceNotFoundError template) factory method to create a shallow copy GraphQLReferencedResourceNotFoundErrorvoidUnique identifier of the referenced resource, if known.voidUser-defined unique identifier of the referenced resource, if known.voidsetTypeId(ReferenceTypeId typeId) Type of referenced resource.static com.fasterxml.jackson.core.type.TypeReference<GraphQLReferencedResourceNotFoundError>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithGraphQLReferencedResourceNotFoundError(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:GraphQLErrorObjectOne of the error codes that is listed on the Errors page.
- Specified by:
getCodein 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
-
copyDeep
GraphQLReferencedResourceNotFoundError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
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
-