Interface ReferencedResourceNotFound
- All Superinterfaces:
ErrorObject
Returned when a resource referenced by a Reference or a ResourceIdentifier could not be found.
Example to create an instance using the builder pattern
ReferencedResourceNotFound referencedResourceNotFound = ReferencedResourceNotFound.builder()
.message("{message}")
.typeId(ReferenceType.CART)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ReferencedResourceNotFound -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ReferencedResourceNotFoundbuilder
(ReferencedResourceNotFound template) create builder for ReferencedResourceNotFound instancestatic ReferencedResourceNotFound
deepCopy
(ReferencedResourceNotFound template) factory method to create a deep copy of ReferencedResourceNotFound@NotNull String
getCode()
getId()
Unique identifier of the referenced resource, if known.getKey()
User-defined unique identifier of the referenced resource, if known.@NotNull String
"The referenced object of type $typeId $predicate was not found.
@NotNull ReferenceType
Type of referenced resource.static ReferencedResourceNotFound
of()
factory methodstatic ReferencedResourceNotFound
of
(ReferencedResourceNotFound template) factory method to create a shallow copy ReferencedResourceNotFoundvoid
Unique identifier of the referenced resource, if known.void
User-defined unique identifier of the referenced resource, if known.void
setMessage
(String message) "The referenced object of type $typeId $predicate was not found.
void
setTypeId
(ReferenceType typeId) Type of referenced resource.static com.fasterxml.jackson.core.type.TypeReference<ReferencedResourceNotFound>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.importapi.models.errors.ErrorObject
withErrorObject
-
Field Details
-
REFERENCED_RESOURCE_NOT_FOUND
discriminator value for ReferencedResourceNotFound- See Also:
-
-
Method Details
-
getCode
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"The referenced object of type $typeId $predicate was not found. It either doesn't exist, or it can't be accessed from this endpoint (e.g., if the endpoint filters by store or customer account)."
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
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
-
setMessage
"The referenced object of type $typeId $predicate was not found. It either doesn't exist, or it can't be accessed from this endpoint (e.g., if the endpoint filters by store or customer account)."
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
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 ReferencedResourceNotFound
-
of
factory method to create a shallow copy ReferencedResourceNotFound- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ReferencedResourceNotFound- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReferencedResourceNotFound- Returns:
- builder
-
builder
create builder for ReferencedResourceNotFound instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withReferencedResourceNotFound
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
-