Interface BatchPutDocumentRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<BatchPutDocumentRequest.Builder,,BatchPutDocumentRequest> QBusinessRequest.Builder,SdkBuilder<BatchPutDocumentRequest.Builder,,BatchPutDocumentRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
BatchPutDocumentRequest
public static interface BatchPutDocumentRequest.Builder
extends QBusinessRequest.Builder, SdkPojo, CopyableBuilder<BatchPutDocumentRequest.Builder,BatchPutDocumentRequest>
-
Method Summary
Modifier and TypeMethodDescriptionapplicationId(String applicationId) The identifier of the Amazon Q Business application.dataSourceSyncId(String dataSourceSyncId) The identifier of the data source sync during which the documents were added.documents(Collection<Document> documents) One or more documents to add to the index.documents(Consumer<Document.Builder>... documents) One or more documents to add to the index.One or more documents to add to the index.The identifier of the Amazon Q Business index to add the documents to.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.qbusiness.model.QBusinessRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
applicationId
The identifier of the Amazon Q Business application.
- Parameters:
applicationId- The identifier of the Amazon Q Business application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indexId
The identifier of the Amazon Q Business index to add the documents to.
- Parameters:
indexId- The identifier of the Amazon Q Business index to add the documents to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documents
One or more documents to add to the index.
- Parameters:
documents- One or more documents to add to the index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documents
One or more documents to add to the index.
- Parameters:
documents- One or more documents to add to the index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documents
One or more documents to add to the index.
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 todocuments(List<Document>).- 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:
-
roleArn
The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket.
- Parameters:
roleArn- The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSourceSyncId
The identifier of the data source sync during which the documents were added.
- Parameters:
dataSourceSyncId- The identifier of the data source sync during which the documents were added.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
BatchPutDocumentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
BatchPutDocumentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-