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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default KnowledgeBaseDocument.Buildercontent(Consumer<DocumentContent.Builder> content)Contains the content of the document.KnowledgeBaseDocument.Buildercontent(DocumentContent content)Contains the content of the document.default KnowledgeBaseDocument.Buildermetadata(Consumer<DocumentMetadata.Builder> metadata)Contains the metadata to associate with the document.KnowledgeBaseDocument.Buildermetadata(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 Detail
-
metadata
KnowledgeBaseDocument.Builder metadata(DocumentMetadata 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
default KnowledgeBaseDocument.Builder metadata(Consumer<DocumentMetadata.Builder> 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:
metadata(DocumentMetadata)
-
content
KnowledgeBaseDocument.Builder content(DocumentContent 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
default KnowledgeBaseDocument.Builder content(Consumer<DocumentContent.Builder> 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:
content(DocumentContent)
-
-