@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchPutDocumentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
BatchPutDocumentRequest() |
Modifier and Type | Method and Description |
---|---|
BatchPutDocumentRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<Document> |
getDocuments()
One or more documents to add to the index.
|
String |
getIndexId()
The identifier of the index to add the documents to.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of a role that is allowed to run the
BatchPutDocument operation. |
int |
hashCode() |
void |
setDocuments(Collection<Document> documents)
One or more documents to add to the index.
|
void |
setIndexId(String indexId)
The identifier of the index to add the documents to.
|
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of a role that is allowed to run the
BatchPutDocument operation. |
String |
toString()
Returns a string representation of this object.
|
BatchPutDocumentRequest |
withDocuments(Collection<Document> documents)
One or more documents to add to the index.
|
BatchPutDocumentRequest |
withDocuments(Document... documents)
One or more documents to add to the index.
|
BatchPutDocumentRequest |
withIndexId(String indexId)
The identifier of the index to add the documents to.
|
BatchPutDocumentRequest |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of a role that is allowed to run the
BatchPutDocument operation. |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setIndexId(String indexId)
The identifier of the index to add the documents to. You need to create the index first using the CreateIndex operation.
indexId
- The identifier of the index to add the documents to. You need to create the index first using the
CreateIndex operation.public String getIndexId()
The identifier of the index to add the documents to. You need to create the index first using the CreateIndex operation.
public BatchPutDocumentRequest withIndexId(String indexId)
The identifier of the index to add the documents to. You need to create the index first using the CreateIndex operation.
indexId
- The identifier of the index to add the documents to. You need to create the index first using the
CreateIndex operation.public void setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of a role that is allowed to run the BatchPutDocument
operation. For
more information, see IAM Roles for Amazon
Kendra.
roleArn
- The Amazon Resource Name (ARN) of a role that is allowed to run the BatchPutDocument
operation. For more information, see IAM Roles for Amazon Kendra.public String getRoleArn()
The Amazon Resource Name (ARN) of a role that is allowed to run the BatchPutDocument
operation. For
more information, see IAM Roles for Amazon
Kendra.
BatchPutDocument
operation. For more information, see IAM Roles for Amazon Kendra.public BatchPutDocumentRequest withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of a role that is allowed to run the BatchPutDocument
operation. For
more information, see IAM Roles for Amazon
Kendra.
roleArn
- The Amazon Resource Name (ARN) of a role that is allowed to run the BatchPutDocument
operation. For more information, see IAM Roles for Amazon Kendra.public List<Document> getDocuments()
One or more documents to add to the index.
Documents have the following file size limits.
5 MB total size for inline documents
50 MB total size for files from an S3 bucket
5 MB extracted text for any file
For more information about file size and transaction per second quotas, see Quotas.
Documents have the following file size limits.
5 MB total size for inline documents
50 MB total size for files from an S3 bucket
5 MB extracted text for any file
For more information about file size and transaction per second quotas, see Quotas.
public void setDocuments(Collection<Document> documents)
One or more documents to add to the index.
Documents have the following file size limits.
5 MB total size for inline documents
50 MB total size for files from an S3 bucket
5 MB extracted text for any file
For more information about file size and transaction per second quotas, see Quotas.
documents
- One or more documents to add to the index.
Documents have the following file size limits.
5 MB total size for inline documents
50 MB total size for files from an S3 bucket
5 MB extracted text for any file
For more information about file size and transaction per second quotas, see Quotas.
public BatchPutDocumentRequest withDocuments(Document... documents)
One or more documents to add to the index.
Documents have the following file size limits.
5 MB total size for inline documents
50 MB total size for files from an S3 bucket
5 MB extracted text for any file
For more information about file size and transaction per second quotas, see Quotas.
NOTE: This method appends the values to the existing list (if any). Use
setDocuments(java.util.Collection)
or withDocuments(java.util.Collection)
if you want to
override the existing values.
documents
- One or more documents to add to the index.
Documents have the following file size limits.
5 MB total size for inline documents
50 MB total size for files from an S3 bucket
5 MB extracted text for any file
For more information about file size and transaction per second quotas, see Quotas.
public BatchPutDocumentRequest withDocuments(Collection<Document> documents)
One or more documents to add to the index.
Documents have the following file size limits.
5 MB total size for inline documents
50 MB total size for files from an S3 bucket
5 MB extracted text for any file
For more information about file size and transaction per second quotas, see Quotas.
documents
- One or more documents to add to the index.
Documents have the following file size limits.
5 MB total size for inline documents
50 MB total size for files from an S3 bucket
5 MB extracted text for any file
For more information about file size and transaction per second quotas, see Quotas.
public String toString()
toString
in class Object
Object.toString()
public BatchPutDocumentRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()