@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RetrieveAndGenerateResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
RetrieveAndGenerateResult() |
Modifier and Type | Method and Description |
---|---|
RetrieveAndGenerateResult |
clone() |
boolean |
equals(Object obj) |
List<Citation> |
getCitations()
A list of segments of the generated response that are based on sources in the knowledge base, alongside
information about the sources.
|
RetrieveAndGenerateOutput |
getOutput()
Contains the response generated from querying the knowledge base.
|
String |
getSessionId()
The unique identifier of the session.
|
int |
hashCode() |
void |
setCitations(Collection<Citation> citations)
A list of segments of the generated response that are based on sources in the knowledge base, alongside
information about the sources.
|
void |
setOutput(RetrieveAndGenerateOutput output)
Contains the response generated from querying the knowledge base.
|
void |
setSessionId(String sessionId)
The unique identifier of the session.
|
String |
toString()
Returns a string representation of this object.
|
RetrieveAndGenerateResult |
withCitations(Citation... citations)
A list of segments of the generated response that are based on sources in the knowledge base, alongside
information about the sources.
|
RetrieveAndGenerateResult |
withCitations(Collection<Citation> citations)
A list of segments of the generated response that are based on sources in the knowledge base, alongside
information about the sources.
|
RetrieveAndGenerateResult |
withOutput(RetrieveAndGenerateOutput output)
Contains the response generated from querying the knowledge base.
|
RetrieveAndGenerateResult |
withSessionId(String sessionId)
The unique identifier of the session.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Citation> getCitations()
A list of segments of the generated response that are based on sources in the knowledge base, alongside information about the sources.
public void setCitations(Collection<Citation> citations)
A list of segments of the generated response that are based on sources in the knowledge base, alongside information about the sources.
citations
- A list of segments of the generated response that are based on sources in the knowledge base, alongside
information about the sources.public RetrieveAndGenerateResult withCitations(Citation... citations)
A list of segments of the generated response that are based on sources in the knowledge base, alongside information about the sources.
NOTE: This method appends the values to the existing list (if any). Use
setCitations(java.util.Collection)
or withCitations(java.util.Collection)
if you want to
override the existing values.
citations
- A list of segments of the generated response that are based on sources in the knowledge base, alongside
information about the sources.public RetrieveAndGenerateResult withCitations(Collection<Citation> citations)
A list of segments of the generated response that are based on sources in the knowledge base, alongside information about the sources.
citations
- A list of segments of the generated response that are based on sources in the knowledge base, alongside
information about the sources.public void setOutput(RetrieveAndGenerateOutput output)
Contains the response generated from querying the knowledge base.
output
- Contains the response generated from querying the knowledge base.public RetrieveAndGenerateOutput getOutput()
Contains the response generated from querying the knowledge base.
public RetrieveAndGenerateResult withOutput(RetrieveAndGenerateOutput output)
Contains the response generated from querying the knowledge base.
output
- Contains the response generated from querying the knowledge base.public void setSessionId(String sessionId)
The unique identifier of the session. Reuse the same value to continue the same session with the knowledge base.
sessionId
- The unique identifier of the session. Reuse the same value to continue the same session with the knowledge
base.public String getSessionId()
The unique identifier of the session. Reuse the same value to continue the same session with the knowledge base.
public RetrieveAndGenerateResult withSessionId(String sessionId)
The unique identifier of the session. Reuse the same value to continue the same session with the knowledge base.
sessionId
- The unique identifier of the session. Reuse the same value to continue the same session with the knowledge
base.public String toString()
toString
in class Object
Object.toString()
public RetrieveAndGenerateResult clone()