Interface RelevantContent.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RelevantContent.Builder,
,RelevantContent> SdkBuilder<RelevantContent.Builder,
,RelevantContent> SdkPojo
- Enclosing class:
RelevantContent
-
Method Summary
Modifier and TypeMethodDescriptionThe actual content of the relevant item.documentAttributes
(Collection<DocumentAttribute> documentAttributes) Additional attributes of the document containing the relevant content.documentAttributes
(Consumer<DocumentAttribute.Builder>... documentAttributes) Additional attributes of the document containing the relevant content.documentAttributes
(DocumentAttribute... documentAttributes) Additional attributes of the document containing the relevant content.documentId
(String documentId) The unique identifier of the document containing the relevant content.documentTitle
(String documentTitle) The title of the document containing the relevant content.documentUri
(String documentUri) The URI of the document containing the relevant content.default RelevantContent.Builder
scoreAttributes
(Consumer<ScoreAttributes.Builder> scoreAttributes) Attributes related to the relevance score of the content.scoreAttributes
(ScoreAttributes scoreAttributes) Attributes related to the relevance score of the content.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, sdkFieldNameToField, sdkFields
-
Method Details
-
content
The actual content of the relevant item.
- Parameters:
content
- The actual content of the relevant item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentId
The unique identifier of the document containing the relevant content.
- Parameters:
documentId
- The unique identifier of the document containing the relevant content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentTitle
The title of the document containing the relevant content.
- Parameters:
documentTitle
- The title of the document containing the relevant content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentUri
The URI of the document containing the relevant content.
- Parameters:
documentUri
- The URI of the document containing the relevant content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentAttributes
Additional attributes of the document containing the relevant content.
- Parameters:
documentAttributes
- Additional attributes of the document containing the relevant content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentAttributes
Additional attributes of the document containing the relevant content.
- Parameters:
documentAttributes
- Additional attributes of the document containing the relevant content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentAttributes
RelevantContent.Builder documentAttributes(Consumer<DocumentAttribute.Builder>... documentAttributes) Additional attributes of the document containing the relevant content.
This is a convenience method that creates an instance of theDocumentAttribute.Builder
avoiding the need to create one manually viaDocumentAttribute.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todocumentAttributes(List<DocumentAttribute>)
.- Parameters:
documentAttributes
- a consumer that will call methods onDocumentAttribute.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scoreAttributes
Attributes related to the relevance score of the content.
- Parameters:
scoreAttributes
- Attributes related to the relevance score of the content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scoreAttributes
Attributes related to the relevance score of the content.
This is a convenience method that creates an instance of theScoreAttributes.Builder
avoiding the need to create one manually viaScoreAttributes.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toscoreAttributes(ScoreAttributes)
.- Parameters:
scoreAttributes
- a consumer that will call methods onScoreAttributes.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-