Class TextResponsePart
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagentruntime.model.TextResponsePart
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TextResponsePart.Builder,TextResponsePart>
@Generated("software.amazon.awssdk:codegen") public final class TextResponsePart extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TextResponsePart.Builder,TextResponsePart>
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
textResponsePartfield -
Retrieve response – in the
textResponsePartfield
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTextResponsePart.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TextResponsePart.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends TextResponsePart.Builder>serializableBuilderClass()Spanspan()Contains information about where the text with a citation begins and ends in the generated output.Stringtext()The part of the generated text that contains a citation.TextResponsePart.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
span
public final Span span()
Contains information about where the text with a citation begins and ends in the generated output.
- Returns:
- Contains information about where the text with a citation begins and ends in the generated output.
-
text
public final String text()
The part of the generated text that contains a citation.
- Returns:
- The part of the generated text that contains a citation.
-
toBuilder
public TextResponsePart.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TextResponsePart.Builder,TextResponsePart>
-
builder
public static TextResponsePart.Builder builder()
-
serializableBuilderClass
public static Class<? extends TextResponsePart.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
-