@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Span extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about where the text with a citation begins and ends in the generated output.
This data type is used in the following API operations:
RetrieveAndGenerate response – in the span field
InvokeAgent response – in the span field
| Constructor and Description |
|---|
Span() |
| Modifier and Type | Method and Description |
|---|---|
Span |
clone() |
boolean |
equals(Object obj) |
Integer |
getEnd()
Where the text with a citation ends in the generated output.
|
Integer |
getStart()
Where the text with a citation starts in the generated output.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setEnd(Integer end)
Where the text with a citation ends in the generated output.
|
void |
setStart(Integer start)
Where the text with a citation starts in the generated output.
|
String |
toString()
Returns a string representation of this object.
|
Span |
withEnd(Integer end)
Where the text with a citation ends in the generated output.
|
Span |
withStart(Integer start)
Where the text with a citation starts in the generated output.
|
public void setEnd(Integer end)
Where the text with a citation ends in the generated output.
end - Where the text with a citation ends in the generated output.public Integer getEnd()
Where the text with a citation ends in the generated output.
public Span withEnd(Integer end)
Where the text with a citation ends in the generated output.
end - Where the text with a citation ends in the generated output.public void setStart(Integer start)
Where the text with a citation starts in the generated output.
start - Where the text with a citation starts in the generated output.public Integer getStart()
Where the text with a citation starts in the generated output.
public Span withStart(Integer start)
Where the text with a citation starts in the generated output.
start - Where the text with a citation starts in the generated output.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.