Class DocumentChunkLocation
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockruntime.model.DocumentChunkLocation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DocumentChunkLocation.Builder,DocumentChunkLocation>
@Generated("software.amazon.awssdk:codegen") public final class DocumentChunkLocation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DocumentChunkLocation.Builder,DocumentChunkLocation>
Specifies a chunk-level location within a document, providing positioning information for cited content using logical document segments or chunks.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDocumentChunkLocation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DocumentChunkLocation.Builderbuilder()IntegerdocumentIndex()The index of the document within the array of documents provided in the request.Integerend()The ending chunk identifier or index of the cited content within the document.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends DocumentChunkLocation.Builder>serializableBuilderClass()Integerstart()The starting chunk identifier or index of the cited content within the document.DocumentChunkLocation.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
-
documentIndex
public final Integer documentIndex()
The index of the document within the array of documents provided in the request.
- Returns:
- The index of the document within the array of documents provided in the request.
-
start
public final Integer start()
The starting chunk identifier or index of the cited content within the document.
- Returns:
- The starting chunk identifier or index of the cited content within the document.
-
end
public final Integer end()
The ending chunk identifier or index of the cited content within the document.
- Returns:
- The ending chunk identifier or index of the cited content within the document.
-
toBuilder
public DocumentChunkLocation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DocumentChunkLocation.Builder,DocumentChunkLocation>
-
builder
public static DocumentChunkLocation.Builder builder()
-
serializableBuilderClass
public static Class<? extends DocumentChunkLocation.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-