Interface ResultData.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ResultData.Builder,
,ResultData> SdkBuilder<ResultData.Builder,
,ResultData> SdkPojo
- Enclosing class:
ResultData
public static interface ResultData.Builder
extends SdkPojo, CopyableBuilder<ResultData.Builder,ResultData>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResultData.Builder
data
(Consumer<DataSummary.Builder> data) Summary of the recommended content.data
(DataSummary data) Summary of the recommended content.default ResultData.Builder
document
(Consumer<Document.Builder> document) The document.The document.relevanceScore
(Double relevanceScore) The relevance score of the results.The identifier of the result data.The type of the query result.type
(QueryResultType type) The type of the query result.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
data
Summary of the recommended content.
- Parameters:
data
- Summary of the recommended content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
data
Summary of the recommended content.
This is a convenience method that creates an instance of theDataSummary.Builder
avoiding the need to create one manually viaDataSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todata(DataSummary)
.- Parameters:
data
- a consumer that will call methods onDataSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
document
The document.
- Parameters:
document
- The document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
document
The document.
This is a convenience method that creates an instance of theDocument.Builder
avoiding the need to create one manually viaDocument.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todocument(Document)
.- Parameters:
document
- a consumer that will call methods onDocument.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
relevanceScore
The relevance score of the results.
- Parameters:
relevanceScore
- The relevance score of the results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultId
The identifier of the result data.
- Parameters:
resultId
- The identifier of the result data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of the query result.
- Parameters:
type
- The type of the query result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of the query result.
- Parameters:
type
- The type of the query result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-