Interface DocumentIdentifier.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DocumentIdentifier.Builder,
,DocumentIdentifier> SdkBuilder<DocumentIdentifier.Builder,
,DocumentIdentifier> SdkPojo
- Enclosing class:
DocumentIdentifier
@Mutable
@NotThreadSafe
public static interface DocumentIdentifier.Builder
extends SdkPojo, CopyableBuilder<DocumentIdentifier.Builder,DocumentIdentifier>
-
Method Summary
Modifier and TypeMethodDescriptiondefault DocumentIdentifier.Builder
Contains information that identifies the document in a custom data source.custom
(CustomDocumentIdentifier custom) Contains information that identifies the document in a custom data source.dataSourceType
(String dataSourceType) The type of data source connected to the knowledge base that contains the document.dataSourceType
(ContentDataSourceType dataSourceType) The type of data source connected to the knowledge base that contains the document.default DocumentIdentifier.Builder
s3
(Consumer<S3Location.Builder> s3) Contains information that identifies the document in an S3 data source.s3
(S3Location s3) Contains information that identifies the document in an 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 Details
-
custom
Contains information that identifies the document in a custom data source.
- Parameters:
custom
- Contains information that identifies the document in a custom data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
custom
Contains information that identifies the document in a custom data source.
This is a convenience method that creates an instance of theCustomDocumentIdentifier.Builder
avoiding the need to create one manually viaCustomDocumentIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustom(CustomDocumentIdentifier)
.- Parameters:
custom
- a consumer that will call methods onCustomDocumentIdentifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataSourceType
The type of data source connected to the knowledge base that contains the document.
- Parameters:
dataSourceType
- The type of data source connected to the knowledge base that contains the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataSourceType
The type of data source connected to the knowledge base that contains the document.
- Parameters:
dataSourceType
- The type of data source connected to the knowledge base that contains the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
s3
Contains information that identifies the document in an S3 data source.
- Parameters:
s3
- Contains information that identifies the document in an S3 data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3
Contains information that identifies the document in an S3 data source.
This is a convenience method that creates an instance of theS3Location.Builder
avoiding the need to create one manually viaS3Location.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tos3(S3Location)
.- Parameters:
s3
- a consumer that will call methods onS3Location.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-