Class Span
java.lang.Object
software.amazon.awssdk.services.bedrockagentruntime.model.Span
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Span.Builder,Span>
@Generated("software.amazon.awssdk:codegen")
public final class Span
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<Span.Builder,Span>
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
spanfield -
InvokeAgent response – in the
spanfield
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Span.Builderbuilder()final Integerend()Where the text with a citation ends in the generated output.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends Span.Builder>final Integerstart()Where the text with a citation starts in the generated output.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
end
Where the text with a citation ends in the generated output.
- Returns:
- Where the text with a citation ends in the generated output.
-
start
Where the text with a citation starts in the generated output.
- Returns:
- Where the text with a citation starts in the generated output.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<Span.Builder,Span>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-