Class SearchResultLocation
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockruntime.model.SearchResultLocation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SearchResultLocation.Builder,SearchResultLocation>
@Generated("software.amazon.awssdk:codegen") public final class SearchResultLocation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SearchResultLocation.Builder,SearchResultLocation>
Specifies a search result location within the content array, providing positioning information for cited content using search result index and block positions.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSearchResultLocation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SearchResultLocation.Builderbuilder()Integerend()The ending position in the content array where the cited content ends.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()IntegersearchResultIndex()The index of the search result content block where the cited content is found.static Class<? extends SearchResultLocation.Builder>serializableBuilderClass()Integerstart()The starting position in the content array where the cited content begins.SearchResultLocation.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
-
searchResultIndex
public final Integer searchResultIndex()
The index of the search result content block where the cited content is found.
- Returns:
- The index of the search result content block where the cited content is found.
-
start
public final Integer start()
The starting position in the content array where the cited content begins.
- Returns:
- The starting position in the content array where the cited content begins.
-
end
public final Integer end()
The ending position in the content array where the cited content ends.
- Returns:
- The ending position in the content array where the cited content ends.
-
toBuilder
public SearchResultLocation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SearchResultLocation.Builder,SearchResultLocation>
-
builder
public static SearchResultLocation.Builder builder()
-
serializableBuilderClass
public static Class<? extends SearchResultLocation.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
-
-