Interface RelevantContent.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<RelevantContent.Builder,,- RelevantContent> - SdkBuilder<RelevantContent.Builder,,- RelevantContent> - SdkPojo
- Enclosing class:
- RelevantContent
- 
Method SummaryModifier 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.BuilderscoreAttributes(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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
contentThe 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.
 
- 
documentIdThe 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.
 
- 
documentTitleThe 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.
 
- 
documentUriThe 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.
 
- 
documentAttributesAdditional 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.
 
- 
documentAttributesAdditional 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.
 
- 
documentAttributesRelevantContent.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.Builderavoiding the need to create one manually viaDocumentAttribute.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todocumentAttributes(List<DocumentAttribute>).- Parameters:
- documentAttributes- a consumer that will call methods on- DocumentAttribute.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
scoreAttributesAttributes 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.
 
- 
scoreAttributesAttributes related to the relevance score of the content. This is a convenience method that creates an instance of theScoreAttributes.Builderavoiding the need to create one manually viaScoreAttributes.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscoreAttributes(ScoreAttributes).- Parameters:
- scoreAttributes- a consumer that will call methods on- ScoreAttributes.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-