Interface DocumentContent.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DocumentContent.Builder,DocumentContent>,SdkBuilder<DocumentContent.Builder,DocumentContent>,SdkPojo
- Enclosing class:
- DocumentContent
@Mutable @NotThreadSafe public static interface DocumentContent.Builder extends SdkPojo, CopyableBuilder<DocumentContent.Builder,DocumentContent>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DocumentContent.Buildercustom(Consumer<CustomContent.Builder> custom)Contains information about the content to ingest into a knowledge base connected to a custom data source.DocumentContent.Buildercustom(CustomContent custom)Contains information about the content to ingest into a knowledge base connected to a custom data source.DocumentContent.BuilderdataSourceType(String dataSourceType)The type of data source that is connected to the knowledge base to which to ingest this document.DocumentContent.BuilderdataSourceType(ContentDataSourceType dataSourceType)The type of data source that is connected to the knowledge base to which to ingest this document.default DocumentContent.Builders3(Consumer<S3Content.Builder> s3)Contains information about the content to ingest into a knowledge base connected to an Amazon S3 data sourceDocumentContent.Builders3(S3Content s3)Contains information about the content to ingest into a knowledge base connected to an Amazon S3 data source-
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
-
dataSourceType
DocumentContent.Builder dataSourceType(String dataSourceType)
The type of data source that is connected to the knowledge base to which to ingest this document.
- Parameters:
dataSourceType- The type of data source that is connected to the knowledge base to which to ingest this document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ContentDataSourceType,ContentDataSourceType
-
dataSourceType
DocumentContent.Builder dataSourceType(ContentDataSourceType dataSourceType)
The type of data source that is connected to the knowledge base to which to ingest this document.
- Parameters:
dataSourceType- The type of data source that is connected to the knowledge base to which to ingest this document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ContentDataSourceType,ContentDataSourceType
-
custom
DocumentContent.Builder custom(CustomContent custom)
Contains information about the content to ingest into a knowledge base connected to a custom data source.
- Parameters:
custom- Contains information about the content to ingest into a knowledge base connected to a custom data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
custom
default DocumentContent.Builder custom(Consumer<CustomContent.Builder> custom)
Contains information about the content to ingest into a knowledge base connected to a custom data source.
This is a convenience method that creates an instance of theCustomContent.Builderavoiding the need to create one manually viaCustomContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocustom(CustomContent).- Parameters:
custom- a consumer that will call methods onCustomContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
custom(CustomContent)
-
s3
DocumentContent.Builder s3(S3Content s3)
Contains information about the content to ingest into a knowledge base connected to an Amazon S3 data source
- Parameters:
s3- Contains information about the content to ingest into a knowledge base connected to an Amazon S3 data source- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3
default DocumentContent.Builder s3(Consumer<S3Content.Builder> s3)
Contains information about the content to ingest into a knowledge base connected to an Amazon S3 data source
This is a convenience method that creates an instance of theS3Content.Builderavoiding the need to create one manually viaS3Content.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tos3(S3Content).- Parameters:
s3- a consumer that will call methods onS3Content.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
s3(S3Content)
-
-