Interface AgentResponsesPayload
Structured fields for the payload part of a multipart/form-data /responses request to the Intake Agent. prompt is optional when files are attached.
For an application/json request, use AgentResponsesRequest instead.
Example to create an instance using the builder pattern
AgentResponsesPayload agentResponsesPayload = AgentResponsesPayload.builder()
.outputType(AgentResponsesOutputType.CART)
.locale("{locale}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic AgentResponsesPayloadBuilderbuilder()builder factory method for AgentResponsesPayloadstatic AgentResponsesPayloadBuilderbuilder(AgentResponsesPayload template) create builder for AgentResponsesPayload instancecopyDeep()static AgentResponsesPayloaddeepCopy(AgentResponsesPayload template) factory method to create a deep copy of AgentResponsesPayloadBusinessUnit to use for the request.@NotNull StringA valid BCP 47 language tag, for exampleen-US.@NotNull AgentResponsesOutputTypeThe entity to create.Natural-language description of the desired Cart or Quote Request, such as the body of an email or a note.@Valid StoreResourceIdentifiergetStore()Store to use for the request.static AgentResponsesPayloadof()factory methodstatic AgentResponsesPayloadof(AgentResponsesPayload template) factory method to create a shallow copy AgentResponsesPayloadvoidsetBusinessUnit(BusinessUnitResourceIdentifier businessUnit) BusinessUnit to use for the request.voidA valid BCP 47 language tag, for exampleen-US.voidsetOutputType(AgentResponsesOutputType outputType) The entity to create.voidNatural-language description of the desired Cart or Quote Request, such as the body of an email or a note.voidsetStore(StoreResourceIdentifier store) Store to use for the request.static tools.jackson.core.type.TypeReference<AgentResponsesPayload>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getOutputType
The entity to create.
- Returns:
- outputType
-
getLocale
A valid BCP 47 language tag, for example
en-US.- Returns:
- locale
-
getPrompt
String getPrompt()Natural-language description of the desired Cart or Quote Request, such as the body of an email or a note. Required if no file is attached.
- Returns:
- prompt
-
getBusinessUnit
BusinessUnit to use for the request. If omitted, the Intake Agent resolves it from the input.
- Returns:
- businessUnit
-
getStore
Store to use for the request. If omitted, the Intake Agent resolves it from the input.
- Returns:
- store
-
setOutputType
The entity to create.
- Parameters:
outputType- value to be set
-
setLocale
A valid BCP 47 language tag, for example
en-US.- Parameters:
locale- value to be set
-
setPrompt
Natural-language description of the desired Cart or Quote Request, such as the body of an email or a note. Required if no file is attached.
- Parameters:
prompt- value to be set
-
setBusinessUnit
BusinessUnit to use for the request. If omitted, the Intake Agent resolves it from the input.
- Parameters:
businessUnit- value to be set
-
setStore
Store to use for the request. If omitted, the Intake Agent resolves it from the input.
- Parameters:
store- value to be set
-
of
factory method- Returns:
- instance of AgentResponsesPayload
-
of
factory method to create a shallow copy AgentResponsesPayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AgentResponsesPayload copyDeep() -
deepCopy
factory method to create a deep copy of AgentResponsesPayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AgentResponsesPayload- Returns:
- builder
-
builder
create builder for AgentResponsesPayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAgentResponsesPayload
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
-