Interface KnowledgeBaseDocument.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<KnowledgeBaseDocument.Builder,
,KnowledgeBaseDocument> SdkBuilder<KnowledgeBaseDocument.Builder,
,KnowledgeBaseDocument> SdkPojo
- Enclosing class:
KnowledgeBaseDocument
@Mutable
@NotThreadSafe
public static interface KnowledgeBaseDocument.Builder
extends SdkPojo, CopyableBuilder<KnowledgeBaseDocument.Builder,KnowledgeBaseDocument>
-
Method Summary
Modifier and TypeMethodDescriptiondefault KnowledgeBaseDocument.Builder
content
(Consumer<DocumentContent.Builder> content) Contains the content of the document.content
(DocumentContent content) Contains the content of the document.default KnowledgeBaseDocument.Builder
metadata
(Consumer<DocumentMetadata.Builder> metadata) Contains the metadata to associate with the document.metadata
(DocumentMetadata metadata) Contains the metadata to associate with the document.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
Contains the content of the document.
- Parameters:
content
- Contains the content of the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
Contains the content of the document.
This is a convenience method that creates an instance of theDocumentContent.Builder
avoiding the need to create one manually viaDocumentContent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontent(DocumentContent)
.- Parameters:
content
- a consumer that will call methods onDocumentContent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadata
Contains the metadata to associate with the document.
- Parameters:
metadata
- Contains the metadata to associate with the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
Contains the metadata to associate with the document.
This is a convenience method that creates an instance of theDocumentMetadata.Builder
avoiding the need to create one manually viaDocumentMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometadata(DocumentMetadata)
.- Parameters:
metadata
- a consumer that will call methods onDocumentMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-