Interface Document.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Document.Builder,
,Document> SdkBuilder<Document.Builder,
,Document> SdkPojo
- Enclosing class:
Document
-
Method Summary
Modifier and TypeMethodDescriptiondefault Document.Builder
accessConfiguration
(Consumer<AccessConfiguration.Builder> accessConfiguration) Configuration information for access permission to a document.accessConfiguration
(AccessConfiguration accessConfiguration) Configuration information for access permission to a document.attributes
(Collection<DocumentAttribute> attributes) Custom attributes to apply to the document for refining Amazon Q Business web experience responses.attributes
(Consumer<DocumentAttribute.Builder>... attributes) Custom attributes to apply to the document for refining Amazon Q Business web experience responses.attributes
(DocumentAttribute... attributes) Custom attributes to apply to the document for refining Amazon Q Business web experience responses.default Document.Builder
content
(Consumer<DocumentContent.Builder> content) The contents of the document.content
(DocumentContent content) The contents of the document.contentType
(String contentType) The file type of the document in the Blob field.contentType
(ContentType contentType) The file type of the document in the Blob field.default Document.Builder
documentEnrichmentConfiguration
(Consumer<DocumentEnrichmentConfiguration.Builder> documentEnrichmentConfiguration) The configuration information for altering document metadata and content during the document ingestion process.documentEnrichmentConfiguration
(DocumentEnrichmentConfiguration documentEnrichmentConfiguration) The configuration information for altering document metadata and content during the document ingestion process.The identifier of the document.default Document.Builder
mediaExtractionConfiguration
(Consumer<MediaExtractionConfiguration.Builder> mediaExtractionConfiguration) The configuration for extracting information from media in the document.mediaExtractionConfiguration
(MediaExtractionConfiguration mediaExtractionConfiguration) The configuration for extracting information from media in the document.The title of 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
-
id
The identifier of the document.
- Parameters:
id
- The identifier of the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
Custom attributes to apply to the document for refining Amazon Q Business web experience responses.
- Parameters:
attributes
- Custom attributes to apply to the document for refining Amazon Q Business web experience responses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
Custom attributes to apply to the document for refining Amazon Q Business web experience responses.
- Parameters:
attributes
- Custom attributes to apply to the document for refining Amazon Q Business web experience responses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
Custom attributes to apply to the document for refining Amazon Q Business web experience responses.
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 toattributes(List<DocumentAttribute>)
.- Parameters:
attributes
- 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:
-
content
The contents of the document.
- Parameters:
content
- The contents of the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The contents 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:
-
contentType
The file type of the document in the Blob field.
If you want to index snippets or subsets of HTML documents instead of the entirety of the HTML documents, you add the
HTML
start and closing tags (<HTML>content</HTML>
) around the content.- Parameters:
contentType
- The file type of the document in the Blob field.If you want to index snippets or subsets of HTML documents instead of the entirety of the HTML documents, you add the
HTML
start and closing tags (<HTML>content</HTML>
) around the content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contentType
The file type of the document in the Blob field.
If you want to index snippets or subsets of HTML documents instead of the entirety of the HTML documents, you add the
HTML
start and closing tags (<HTML>content</HTML>
) around the content.- Parameters:
contentType
- The file type of the document in the Blob field.If you want to index snippets or subsets of HTML documents instead of the entirety of the HTML documents, you add the
HTML
start and closing tags (<HTML>content</HTML>
) around the content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
title
The title of the document.
- Parameters:
title
- The title of the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessConfiguration
Configuration information for access permission to a document.
- Parameters:
accessConfiguration
- Configuration information for access permission to a document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessConfiguration
default Document.Builder accessConfiguration(Consumer<AccessConfiguration.Builder> accessConfiguration) Configuration information for access permission to a document.
This is a convenience method that creates an instance of theAccessConfiguration.Builder
avoiding the need to create one manually viaAccessConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccessConfiguration(AccessConfiguration)
.- Parameters:
accessConfiguration
- a consumer that will call methods onAccessConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
documentEnrichmentConfiguration
Document.Builder documentEnrichmentConfiguration(DocumentEnrichmentConfiguration documentEnrichmentConfiguration) The configuration information for altering document metadata and content during the document ingestion process.
- Parameters:
documentEnrichmentConfiguration
- The configuration information for altering document metadata and content during the document ingestion process.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentEnrichmentConfiguration
default Document.Builder documentEnrichmentConfiguration(Consumer<DocumentEnrichmentConfiguration.Builder> documentEnrichmentConfiguration) The configuration information for altering document metadata and content during the document ingestion process.
This is a convenience method that creates an instance of theDocumentEnrichmentConfiguration.Builder
avoiding the need to create one manually viaDocumentEnrichmentConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todocumentEnrichmentConfiguration(DocumentEnrichmentConfiguration)
.- Parameters:
documentEnrichmentConfiguration
- a consumer that will call methods onDocumentEnrichmentConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mediaExtractionConfiguration
Document.Builder mediaExtractionConfiguration(MediaExtractionConfiguration mediaExtractionConfiguration) The configuration for extracting information from media in the document.
- Parameters:
mediaExtractionConfiguration
- The configuration for extracting information from media in the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mediaExtractionConfiguration
default Document.Builder mediaExtractionConfiguration(Consumer<MediaExtractionConfiguration.Builder> mediaExtractionConfiguration) The configuration for extracting information from media in the document.
This is a convenience method that creates an instance of theMediaExtractionConfiguration.Builder
avoiding the need to create one manually viaMediaExtractionConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomediaExtractionConfiguration(MediaExtractionConfiguration)
.- Parameters:
mediaExtractionConfiguration
- a consumer that will call methods onMediaExtractionConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-