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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ResultData.Builderdata(Consumer<DataSummary.Builder> data)Summary of the recommended content.ResultData.Builderdata(DataSummary data)Summary of the recommended content.default ResultData.Builderdocument(Consumer<Document.Builder> document)The document.ResultData.Builderdocument(Document document)The document.ResultData.BuilderrelevanceScore(Double relevanceScore)The relevance score of the results.ResultData.BuilderresultId(String resultId)The identifier of the result data.ResultData.Buildertype(String type)The type of the query result.ResultData.Buildertype(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 Detail
-
data
ResultData.Builder data(DataSummary 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
default ResultData.Builder data(Consumer<DataSummary.Builder> data)
Summary of the recommended content.
This is a convenience method that creates an instance of theDataSummary.Builderavoiding the need to create one manually viaDataSummary.builder().When the
Consumercompletes,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:
data(DataSummary)
-
document
ResultData.Builder document(Document document)
The document.
- Parameters:
document- The document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
document
default ResultData.Builder document(Consumer<Document.Builder> document)
The document.
This is a convenience method that creates an instance of theDocument.Builderavoiding the need to create one manually viaDocument.builder().When the
Consumercompletes,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:
document(Document)
-
relevanceScore
ResultData.Builder relevanceScore(Double 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
ResultData.Builder resultId(String 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
ResultData.Builder type(String 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:
QueryResultType,QueryResultType
-
type
ResultData.Builder type(QueryResultType 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:
QueryResultType,QueryResultType
-
-