Interface AgentNoLineItemsExtractedError
- All Superinterfaces:
ErrorObject
Returned by a /responses request when no Line Items could be extracted from the provided prompt or files.
Example to create an instance using the builder pattern
AgentNoLineItemsExtractedError agentNoLineItemsExtractedError = AgentNoLineItemsExtractedError.builder()
.message("{message}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for AgentNoLineItemsExtractedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AgentNoLineItemsExtractedErrorbuilder(AgentNoLineItemsExtractedError template) create builder for AgentNoLineItemsExtractedError instancecopyDeep()deepCopy(AgentNoLineItemsExtractedError template) factory method to create a deep copy of AgentNoLineItemsExtractedError@NotNull StringgetCode()Error identifier.@NotNull StringPlain text description of the error.of()factory methodof(AgentNoLineItemsExtractedError template) factory method to create a shallow copy AgentNoLineItemsExtractedErrorvoidsetMessage(String message) Plain text description of the error.static tools.jackson.core.type.TypeReference<AgentNoLineItemsExtractedError>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
NO_LINE_ITEMS_EXTRACTED
discriminator value for AgentNoLineItemsExtractedError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Returns:
- code
-
getMessage
Plain text description of the error.
- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
setMessage
Plain text description of the error.
- Specified by:
setMessagein interfaceErrorObject- Parameters:
message- value to be set
-
of
factory method- Returns:
- instance of AgentNoLineItemsExtractedError
-
of
factory method to create a shallow copy AgentNoLineItemsExtractedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AgentNoLineItemsExtractedError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
@Nullable static AgentNoLineItemsExtractedError deepCopy(@Nullable AgentNoLineItemsExtractedError template) factory method to create a deep copy of AgentNoLineItemsExtractedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AgentNoLineItemsExtractedError- Returns:
- builder
-
builder
create builder for AgentNoLineItemsExtractedError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAgentNoLineItemsExtractedError
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
-