public static interface ExpandedResultItem.Builder extends SdkPojo, CopyableBuilder<ExpandedResultItem.Builder,ExpandedResultItem>
| Modifier and Type | Method and Description |
|---|---|
ExpandedResultItem.Builder |
documentAttributes(Collection<DocumentAttribute> documentAttributes)
An array of document attributes assigned to a document in the search results.
|
ExpandedResultItem.Builder |
documentAttributes(Consumer<DocumentAttribute.Builder>... documentAttributes)
An array of document attributes assigned to a document in the search results.
|
ExpandedResultItem.Builder |
documentAttributes(DocumentAttribute... documentAttributes)
An array of document attributes assigned to a document in the search results.
|
default ExpandedResultItem.Builder |
documentExcerpt(Consumer<TextWithHighlights.Builder> documentExcerpt)
Sets the value of the DocumentExcerpt property for this object.
|
ExpandedResultItem.Builder |
documentExcerpt(TextWithHighlights documentExcerpt)
Sets the value of the DocumentExcerpt property for this object.
|
ExpandedResultItem.Builder |
documentId(String documentId)
The idenitifier of the document.
|
default ExpandedResultItem.Builder |
documentTitle(Consumer<TextWithHighlights.Builder> documentTitle)
Sets the value of the DocumentTitle property for this object.
|
ExpandedResultItem.Builder |
documentTitle(TextWithHighlights documentTitle)
Sets the value of the DocumentTitle property for this object.
|
ExpandedResultItem.Builder |
documentURI(String documentURI)
The URI of the original location of the document.
|
ExpandedResultItem.Builder |
id(String id)
The identifier for the expanded result.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildExpandedResultItem.Builder id(String id)
The identifier for the expanded result.
id - The identifier for the expanded result.ExpandedResultItem.Builder documentId(String documentId)
The idenitifier of the document.
documentId - The idenitifier of the document.ExpandedResultItem.Builder documentTitle(TextWithHighlights documentTitle)
documentTitle - The new value for the DocumentTitle property for this object.default ExpandedResultItem.Builder documentTitle(Consumer<TextWithHighlights.Builder> documentTitle)
TextWithHighlights.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)ExpandedResultItem.Builder documentExcerpt(TextWithHighlights documentExcerpt)
documentExcerpt - The new value for the DocumentExcerpt property for this object.default ExpandedResultItem.Builder documentExcerpt(Consumer<TextWithHighlights.Builder> documentExcerpt)
TextWithHighlights.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)ExpandedResultItem.Builder documentURI(String documentURI)
The URI of the original location of the document.
documentURI - The URI of the original location of the document.ExpandedResultItem.Builder documentAttributes(Collection<DocumentAttribute> documentAttributes)
An array of document attributes assigned to a document in the search results. For example, the document author ("_author") or the source URI ("_source_uri") of the document.
documentAttributes - An array of document attributes assigned to a document in the search results. For example, the
document author ("_author") or the source URI ("_source_uri") of the document.ExpandedResultItem.Builder documentAttributes(DocumentAttribute... documentAttributes)
An array of document attributes assigned to a document in the search results. For example, the document author ("_author") or the source URI ("_source_uri") of the document.
documentAttributes - An array of document attributes assigned to a document in the search results. For example, the
document author ("_author") or the source URI ("_source_uri") of the document.ExpandedResultItem.Builder documentAttributes(Consumer<DocumentAttribute.Builder>... documentAttributes)
An array of document attributes assigned to a document in the search results. For example, the document author ("_author") or the source URI ("_source_uri") of the document.
This is a convenience method that creates an instance of theDocumentAttribute.Builder avoiding the need to create
one manually via DocumentAttribute.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #documentAttributes(List.
documentAttributes - a consumer that will call methods on
DocumentAttribute.Builder#documentAttributes(java.util.Collection) Copyright © 2023. All rights reserved.