Interface KnowledgeBaseRetrievalResult.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<KnowledgeBaseRetrievalResult.Builder,KnowledgeBaseRetrievalResult>
,SdkBuilder<KnowledgeBaseRetrievalResult.Builder,KnowledgeBaseRetrievalResult>
,SdkPojo
- Enclosing class:
- KnowledgeBaseRetrievalResult
public static interface KnowledgeBaseRetrievalResult.Builder extends SdkPojo, CopyableBuilder<KnowledgeBaseRetrievalResult.Builder,KnowledgeBaseRetrievalResult>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default KnowledgeBaseRetrievalResult.Builder
content(Consumer<RetrievalResultContent.Builder> content)
Sets the value of the Content property for this object.KnowledgeBaseRetrievalResult.Builder
content(RetrievalResultContent content)
Sets the value of the Content property for this object.default KnowledgeBaseRetrievalResult.Builder
location(Consumer<RetrievalResultLocation.Builder> location)
Sets the value of the Location property for this object.KnowledgeBaseRetrievalResult.Builder
location(RetrievalResultLocation location)
Sets the value of the Location property for this object.KnowledgeBaseRetrievalResult.Builder
score(Double score)
The relevance score of a 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
-
content
KnowledgeBaseRetrievalResult.Builder content(RetrievalResultContent content)
Sets the value of the Content property for this object.- Parameters:
content
- The new value for the Content property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
default KnowledgeBaseRetrievalResult.Builder content(Consumer<RetrievalResultContent.Builder> content)
Sets the value of the Content property for this object. This is a convenience method that creates an instance of theRetrievalResultContent.Builder
avoiding the need to create one manually viaRetrievalResultContent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontent(RetrievalResultContent)
.- Parameters:
content
- a consumer that will call methods onRetrievalResultContent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
content(RetrievalResultContent)
-
location
KnowledgeBaseRetrievalResult.Builder location(RetrievalResultLocation location)
Sets the value of the Location property for this object.- Parameters:
location
- The new value for the Location property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
default KnowledgeBaseRetrievalResult.Builder location(Consumer<RetrievalResultLocation.Builder> location)
Sets the value of the Location property for this object. This is a convenience method that creates an instance of theRetrievalResultLocation.Builder
avoiding the need to create one manually viaRetrievalResultLocation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolocation(RetrievalResultLocation)
.- Parameters:
location
- a consumer that will call methods onRetrievalResultLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
location(RetrievalResultLocation)
-
score
KnowledgeBaseRetrievalResult.Builder score(Double score)
The relevance score of a result.
- Parameters:
score
- The relevance score of a result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-