public static interface QueryResultItem.Builder extends SdkPojo, CopyableBuilder<QueryResultItem.Builder,QueryResultItem>
| Modifier and Type | Method and Description |
|---|---|
QueryResultItem.Builder |
additionalAttributes(AdditionalResultAttribute... additionalAttributes)
One or more additional attributes associated with the query result.
|
QueryResultItem.Builder |
additionalAttributes(Collection<AdditionalResultAttribute> additionalAttributes)
One or more additional attributes associated with the query result.
|
QueryResultItem.Builder |
additionalAttributes(Consumer<AdditionalResultAttribute.Builder>... additionalAttributes)
One or more additional attributes associated with the query result.
|
QueryResultItem.Builder |
documentAttributes(Collection<DocumentAttribute> documentAttributes)
An array of document attributes for the document that the query result maps to.
|
QueryResultItem.Builder |
documentAttributes(Consumer<DocumentAttribute.Builder>... documentAttributes)
An array of document attributes for the document that the query result maps to.
|
QueryResultItem.Builder |
documentAttributes(DocumentAttribute... documentAttributes)
An array of document attributes for the document that the query result maps to.
|
default QueryResultItem.Builder |
documentExcerpt(Consumer<TextWithHighlights.Builder> documentExcerpt)
An extract of the text in the document.
|
QueryResultItem.Builder |
documentExcerpt(TextWithHighlights documentExcerpt)
An extract of the text in the document.
|
QueryResultItem.Builder |
documentId(String documentId)
The unique identifier for the document.
|
default QueryResultItem.Builder |
documentTitle(Consumer<TextWithHighlights.Builder> documentTitle)
The title of the document.
|
QueryResultItem.Builder |
documentTitle(TextWithHighlights documentTitle)
The title of the document.
|
QueryResultItem.Builder |
documentURI(String documentURI)
The URI of the original location of the document.
|
QueryResultItem.Builder |
id(String id)
The unique identifier for the query result.
|
default QueryResultItem.Builder |
scoreAttributes(Consumer<ScoreAttributes.Builder> scoreAttributes)
Indicates the confidence that Amazon Kendra has that a result matches the query that you provided.
|
QueryResultItem.Builder |
scoreAttributes(ScoreAttributes scoreAttributes)
Indicates the confidence that Amazon Kendra has that a result matches the query that you provided.
|
QueryResultItem.Builder |
type(QueryResultType type)
The type of document.
|
QueryResultItem.Builder |
type(String type)
The type of document.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildQueryResultItem.Builder id(String id)
The unique identifier for the query result.
id - The unique identifier for the query result.QueryResultItem.Builder type(String type)
The type of document.
type - The type of document.QueryResultType,
QueryResultTypeQueryResultItem.Builder type(QueryResultType type)
The type of document.
type - The type of document.QueryResultType,
QueryResultTypeQueryResultItem.Builder additionalAttributes(Collection<AdditionalResultAttribute> additionalAttributes)
One or more additional attributes associated with the query result.
additionalAttributes - One or more additional attributes associated with the query result.QueryResultItem.Builder additionalAttributes(AdditionalResultAttribute... additionalAttributes)
One or more additional attributes associated with the query result.
additionalAttributes - One or more additional attributes associated with the query result.QueryResultItem.Builder additionalAttributes(Consumer<AdditionalResultAttribute.Builder>... additionalAttributes)
One or more additional attributes associated with the query result.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called
immediately and its result is passed to #additionalAttributes(List) .additionalAttributes - a consumer that will call methods on List.Builder #additionalAttributes(List) QueryResultItem.Builder documentId(String documentId)
The unique identifier for the document.
documentId - The unique identifier for the document.QueryResultItem.Builder documentTitle(TextWithHighlights documentTitle)
The title of the document. Contains the text of the title and information for highlighting the relevant terms in the title.
documentTitle - The title of the document. Contains the text of the title and information for highlighting the
relevant terms in the title.default QueryResultItem.Builder documentTitle(Consumer<TextWithHighlights.Builder> documentTitle)
The title of the document. Contains the text of the title and information for highlighting the relevant terms in the title.
This is a convenience that creates an instance of theTextWithHighlights.Builder avoiding the need to
create one manually via TextWithHighlights.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to documentTitle(TextWithHighlights).documentTitle - a consumer that will call methods on TextWithHighlights.BuilderdocumentTitle(TextWithHighlights)QueryResultItem.Builder documentExcerpt(TextWithHighlights documentExcerpt)
An extract of the text in the document. Contains information about highlighting the relevant terms in the excerpt.
documentExcerpt - An extract of the text in the document. Contains information about highlighting the relevant terms in
the excerpt.default QueryResultItem.Builder documentExcerpt(Consumer<TextWithHighlights.Builder> documentExcerpt)
An extract of the text in the document. Contains information about highlighting the relevant terms in the excerpt.
This is a convenience that creates an instance of theTextWithHighlights.Builder avoiding the need to
create one manually via TextWithHighlights.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to documentExcerpt(TextWithHighlights).documentExcerpt - a consumer that will call methods on TextWithHighlights.BuilderdocumentExcerpt(TextWithHighlights)QueryResultItem.Builder documentURI(String documentURI)
The URI of the original location of the document.
documentURI - The URI of the original location of the document.QueryResultItem.Builder documentAttributes(Collection<DocumentAttribute> documentAttributes)
An array of document attributes for the document that the query result maps to. For example, the document author (Author) or the source URI (SourceUri) of the document.
documentAttributes - An array of document attributes for the document that the query result maps to. For example, the
document author (Author) or the source URI (SourceUri) of the document.QueryResultItem.Builder documentAttributes(DocumentAttribute... documentAttributes)
An array of document attributes for the document that the query result maps to. For example, the document author (Author) or the source URI (SourceUri) of the document.
documentAttributes - An array of document attributes for the document that the query result maps to. For example, the
document author (Author) or the source URI (SourceUri) of the document.QueryResultItem.Builder documentAttributes(Consumer<DocumentAttribute.Builder>... documentAttributes)
An array of document attributes for the document that the query result maps to. For example, the document author (Author) or the source URI (SourceUri) of the document.
This is a convenience that creates an instance of theList.Builder avoiding the
need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately
and its result is passed to #documentAttributes(List) .documentAttributes - a consumer that will call methods on List.Builder #documentAttributes(List) QueryResultItem.Builder scoreAttributes(ScoreAttributes scoreAttributes)
Indicates the confidence that Amazon Kendra has that a result matches the query that you provided. Each
result is placed into a bin that indicates the confidence, VERY_HIGH, HIGH,
MEDIUM and LOW. You can use the score to determine if a response meets the
confidence needed for your application.
The field is only set to LOW when the Type field is set to DOCUMENT
and Amazon Kendra is not confident that the result matches the query.
scoreAttributes - Indicates the confidence that Amazon Kendra has that a result matches the query that you provided.
Each result is placed into a bin that indicates the confidence, VERY_HIGH,
HIGH, MEDIUM and LOW. You can use the score to determine if a
response meets the confidence needed for your application.
The field is only set to LOW when the Type field is set to
DOCUMENT and Amazon Kendra is not confident that the result matches the query.
default QueryResultItem.Builder scoreAttributes(Consumer<ScoreAttributes.Builder> scoreAttributes)
Indicates the confidence that Amazon Kendra has that a result matches the query that you provided. Each
result is placed into a bin that indicates the confidence, VERY_HIGH, HIGH,
MEDIUM and LOW. You can use the score to determine if a response meets the
confidence needed for your application.
The field is only set to LOW when the Type field is set to DOCUMENT
and Amazon Kendra is not confident that the result matches the query.
ScoreAttributes.Builder avoiding the need to
create one manually via ScoreAttributes.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to scoreAttributes(ScoreAttributes).scoreAttributes - a consumer that will call methods on ScoreAttributes.BuilderscoreAttributes(ScoreAttributes)Copyright © 2020. All rights reserved.