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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BatchPutDocumentRequest.BuilderapplicationId(String applicationId)The identifier of the Amazon Q application.BatchPutDocumentRequest.BuilderdataSourceSyncId(String dataSourceSyncId)The identifier of the data source sync during which the documents were added.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 Amazon Q 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.qbusiness.model.QBusinessRequest.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
-
applicationId
BatchPutDocumentRequest.Builder applicationId(String applicationId)
The identifier of the Amazon Q application.
- Parameters:
applicationId- The identifier of the Amazon Q application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSourceSyncId
BatchPutDocumentRequest.Builder dataSourceSyncId(String 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.
-
documents
BatchPutDocumentRequest.Builder documents(Collection<Document> 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
BatchPutDocumentRequest.Builder documents(Document... 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
BatchPutDocumentRequest.Builder documents(Consumer<Document.Builder>... 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 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)
-
indexId
BatchPutDocumentRequest.Builder indexId(String indexId)
The identifier of the Amazon Q index to add the documents to.
- Parameters:
indexId- The identifier of the Amazon Q index to add the documents to.- 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.
- 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.
-
overrideConfiguration
BatchPutDocumentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
BatchPutDocumentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-