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.Buildercontent(Consumer<DocumentContent.Builder> content) Contains the content of the document.content(DocumentContent content) Contains the content of the document.default KnowledgeBaseDocument.Buildermetadata(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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.Builderavoiding the need to create one manually viaDocumentMetadata.builder().When the
Consumercompletes,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:
-
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.Builderavoiding the need to create one manually viaDocumentContent.builder().When the
Consumercompletes,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:
-