Interface BatchPutDocumentRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<BatchPutDocumentRequest.Builder,BatchPutDocumentRequest>,KendraRequest.Builder,SdkBuilder<BatchPutDocumentRequest.Builder,BatchPutDocumentRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- BatchPutDocumentRequest
public static interface BatchPutDocumentRequest.Builder extends KendraRequest.Builder, SdkPojo, CopyableBuilder<BatchPutDocumentRequest.Builder,BatchPutDocumentRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default BatchPutDocumentRequest.BuildercustomDocumentEnrichmentConfiguration(Consumer<CustomDocumentEnrichmentConfiguration.Builder> customDocumentEnrichmentConfiguration)Configuration information for altering your document metadata and content during the document ingestion process when you use theBatchPutDocumentAPI.BatchPutDocumentRequest.BuildercustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfiguration customDocumentEnrichmentConfiguration)Configuration information for altering your document metadata and content during the document ingestion process when you use theBatchPutDocumentAPI.BatchPutDocumentRequest.Builderdocuments(Collection<Document> documents)One or more documents to add to the index.BatchPutDocumentRequest.Builderdocuments(Consumer<Document.Builder>... documents)One or more documents to add to the index.BatchPutDocumentRequest.Builderdocuments(Document... documents)One or more documents to add to the index.BatchPutDocumentRequest.BuilderindexId(String indexId)The identifier of the index to add the documents to.BatchPutDocumentRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)BatchPutDocumentRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)BatchPutDocumentRequest.BuilderroleArn(String roleArn)The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.kendra.model.KendraRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
indexId
BatchPutDocumentRequest.Builder indexId(String indexId)
The identifier of the index to add the documents to. You need to create the index first using the
CreateIndexAPI.- Parameters:
indexId- The identifier of the index to add the documents to. You need to create the index first using theCreateIndexAPI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
BatchPutDocumentRequest.Builder roleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket. For more information, see IAM access roles for Amazon Kendra.
- Parameters:
roleArn- The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket. For more information, see IAM access roles for Amazon Kendra.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documents
BatchPutDocumentRequest.Builder documents(Collection<Document> documents)
One or more documents to add to the index.
Documents have the following file size limits.
-
50 MB total size for any file
-
5 MB extracted text for any file
For more information, see Quotas.
- Parameters:
documents- One or more documents to add to the index.Documents have the following file size limits.
-
50 MB total size for any file
-
5 MB extracted text for any file
For more information, see Quotas.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
documents
BatchPutDocumentRequest.Builder documents(Document... documents)
One or more documents to add to the index.
Documents have the following file size limits.
-
50 MB total size for any file
-
5 MB extracted text for any file
For more information, see Quotas.
- Parameters:
documents- One or more documents to add to the index.Documents have the following file size limits.
-
50 MB total size for any file
-
5 MB extracted text for any file
For more information, see Quotas.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
documents
BatchPutDocumentRequest.Builder documents(Consumer<Document.Builder>... documents)
One or more documents to add to the index.
Documents have the following file size limits.
-
50 MB total size for any file
-
5 MB extracted text for any file
For more information, see Quotas.
This is a convenience method that creates an instance of theDocument.Builderavoiding the need to create one manually viaDocument.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#documents(List.) - Parameters:
documents- a consumer that will call methods onDocument.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#documents(java.util.Collection)
-
-
customDocumentEnrichmentConfiguration
BatchPutDocumentRequest.Builder customDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfiguration customDocumentEnrichmentConfiguration)
Configuration information for altering your document metadata and content during the document ingestion process when you use the
BatchPutDocumentAPI.For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process.
- Parameters:
customDocumentEnrichmentConfiguration- Configuration information for altering your document metadata and content during the document ingestion process when you use theBatchPutDocumentAPI.For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customDocumentEnrichmentConfiguration
default BatchPutDocumentRequest.Builder customDocumentEnrichmentConfiguration(Consumer<CustomDocumentEnrichmentConfiguration.Builder> customDocumentEnrichmentConfiguration)
Configuration information for altering your document metadata and content during the document ingestion process when you use the
BatchPutDocumentAPI.For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process.
This is a convenience method that creates an instance of theCustomDocumentEnrichmentConfiguration.Builderavoiding the need to create one manually viaCustomDocumentEnrichmentConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfiguration).- Parameters:
customDocumentEnrichmentConfiguration- a consumer that will call methods onCustomDocumentEnrichmentConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
customDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfiguration)
-
overrideConfiguration
BatchPutDocumentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
BatchPutDocumentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-