@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TextResponsePart extends Object implements Serializable, Cloneable, StructuredPojo
Contains the part of the generated text that contains a citation, alongside where it begins and ends.
This data type is used in the following API operations:
RetrieveAndGenerate response – in the textResponsePart
field
InvokeAgent response – in the textResponsePart
field
Constructor and Description |
---|
TextResponsePart() |
Modifier and Type | Method and Description |
---|---|
TextResponsePart |
clone() |
boolean |
equals(Object obj) |
Span |
getSpan()
Contains information about where the text with a citation begins and ends in the generated output.
|
String |
getText()
The part of the generated text that contains a citation.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSpan(Span span)
Contains information about where the text with a citation begins and ends in the generated output.
|
void |
setText(String text)
The part of the generated text that contains a citation.
|
String |
toString()
Returns a string representation of this object.
|
TextResponsePart |
withSpan(Span span)
Contains information about where the text with a citation begins and ends in the generated output.
|
TextResponsePart |
withText(String text)
The part of the generated text that contains a citation.
|
public void setSpan(Span span)
Contains information about where the text with a citation begins and ends in the generated output.
span
- Contains information about where the text with a citation begins and ends in the generated output.public Span getSpan()
Contains information about where the text with a citation begins and ends in the generated output.
public TextResponsePart withSpan(Span span)
Contains information about where the text with a citation begins and ends in the generated output.
span
- Contains information about where the text with a citation begins and ends in the generated output.public void setText(String text)
The part of the generated text that contains a citation.
text
- The part of the generated text that contains a citation.public String getText()
The part of the generated text that contains a citation.
public TextResponsePart withText(String text)
The part of the generated text that contains a citation.
text
- The part of the generated text that contains a citation.public String toString()
toString
in class Object
Object.toString()
public TextResponsePart clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.